Not that specific example, but I have used that approach before. I think the first time was about 10 years ago. There were a couple queer people in my friend group who would throw around the f-slur, which was whatever, but one night when we were drinking one of my straight friends called me it, and that bothered me. So the next day I sent a group message talking about how it made me feel uncomfortable and I didn’t like it being normalized. It was a little awkward, but from then on everyone stopped using it and we all remained friends. In the long term, I think people actually respected me more for standing up for myself (since I was generally more of a pushover), and it stopped a behavior that had been making me uncomfortable and driving a bit of a wedge between us.
Most of the time, stuff like this don’t come from malice, but from people having different norms or expectations and not understanding each other. They might get defensive in the moment, but once they’re aware of it there’s a good chance they’ll stop. While people can be dicks, we are fundamentally social creatures and wired to avoid friction.
I will say it’s easier to confront people when you have a voluntary relationship with them, because if they’re dicks about it you can always just not hang out, but you can’t do that with coworkers. If they attack you for expressing how their behavior makes you feel, then you can probably bring it to HR and you’ll have a stronger case to say it’s malice.
Grifters grifting grifters lol.