[As per suggestion of user151413, comment converted into response]
A few sanity checks to run:
Ask them who else is in your session and with which topics, if possible.
Check the participant list or the confirmed speakers. I know established researchers that had been taken in by junk conferences. If a junk conference manages to get a lot of good speakers, though, it ceases to be a junk conference :-) Of course, they may lie, but that is usually less likely. If you know one of the other invitees, you could pop them a mail and ask them whether they go.
Check the topics. Does this look like there is a proper scientific agenda or just a jumble of buzzwords? Are the sessions organized by topic (more or less)?
Is there a program committee? Do you know anyone on this list (even just as an author, not personally)? How many?
If you know a person on the PC, 5a) ask them whether the conference is worthwhile (you may thereby find out on the fly whether they actually know that they are listed). 5b) If you don't, check whether the conference is listed on their CV if it is public.
Unfortunately, the often-cited killer criterion whether the conference is at an attractive place does not mean anything. Also good conferences like attractive locations. However, if the conference is running at a nice location while a pandemic situation is still going on, this is most definitely a red flag.
If they claim you are invited, find out whether they cover travel/accommodation and conference fees. If they tell you that you have to pay conference fees, this is a scam. If they say that the conference is free, but they do not cover the trip, it's an orange flag (but not necessarily a scam). Convince yourself that the expense of the trip would be worth your presence. Some high-tier conferences waive only the fees for "minor" invited speakers (e.g. speakers invited to special sessions or workshops, rather than all-out keynotes). For a keynote, you can expect to be fully reimbursed.
Note that sometimes sconferences (scam conferences) adopt names very similar to proper ones, sometimes even copying the precise abbreviation (which unfortunately is not protected, as a number of organisations share the same abbreviation). Some years ago, a sconference hijacked the abbreviation of a quite high-profile conference, located itself in a city in the same or nearby country (I forgot), showed similar-style entry page/photo and managed to convince the search engines for a period to put it on top of the search list. A colleague almost fell for it, but was wondering why all his usual colleagues would not appear.
So the list of invited speakers and PC is one of the best indicators of whether this is the real deal. Of course, if they outright lie, then it's just regular fraud, but usually sconferences live in the grey area of being formally legal, in that they do take place, but are worthless.
Good luck!
[List is extended as additional suggestions are floating in comments]