Someone reminded me of my niece using the words, “nasty pasty” which is one of her favourite admonitions.
I realise that not everyone is brave enough to do this, but said niece, who is a wonderful, thoughtful, caring and hilariously funny girl, has a brilliant way of cutting people down to size. I wish I had her nerve. If anyone says anything mean or spiteful she cries VERY loudly no matter where she is. Not in a way that would suggest she was genuinely hurt, rather like a toddler. Effectively she embarrasses people into behaviour! It is remarkably effective, but I guess you have to be fairly confident to carry it off. Her older sister was on the receiving end of some very nasty behaviour as a teen, and I guess her younger sister thought “stuff that for a game of soldiers”.
If you are not brave enough for the crying strategy, I would sit you walk away. Find some other friends, you don’t need people like that in your life.