Not illegal, because this would be a civil case. But they’re on thin ice because there’s a big difference between “creating something like Her” and “creating something like Scarlet Johansson’s performance in Her”.
Explicit brand reference? Bad. Circumstantial insinuation? Let it go.