The fact that they reached out to her multiple times and insinuated it was supposed to sound like her with Sam's "her" tweet makes a pretty clear connection to her. Without that they'd probably be fine.
Bette Midler sued Ford under very similar circumstances and won.
Scarlett Johansson's character in the movie is not Scarlett Johansson although her voice is very similar. I wouldn't say it's identical.