I'm currently in a similar situation. A friend I made a couple of years ago has turned out to be very sexist - his views don't seem as extreme as your friends', but he says things like 'makeup is fake marketing' and stuff. He doesn't really have friends other than our group, and we're kind of the reason that he eats regular meals at all.
Our friend group is certain that he's basically repeating stuff that youtubers say, and that he doesn't really mean harm
With that in mind, one approach we use is to reason with him.
Whenever he says something sexist, we kind of break it down to the base assumption (women are for men's consumption, women aren't good at math, whatever), and then prove that wrong. I don't know if he's changing his mind or not but he seems to understand why it's hurtful.
We don't phrase it in an argumentative way, it's more like playing the 'why game'.
eg:
"So she should just go make me a sandwich instead of talking about sports"
why?
"because women don't know anything about sports"
our friend X does
"Oh. Well women should be cooking not talking"
I don't cook
"Other women do"
friend Y/my mom/ your sister doesn't
"Uh"
Are you mad at her for saying your team sucks?
"..."
You can be angry about that - I would. But she can talk about whatever she wants right?
This approach depends on :
us having enough patience to go through it to him
him being willing to listen to us
him having good intentions and not actually wanting to hurt people
I hope it's possible to reason with your friend, but it might not be. This next strategy is one I use when I just can't be bothered to correct my friend in a polite way.
I snap at him. I always feel guilty about it, but I basically say something like "No, that anime isn't cool, it's pedophilic and gross. How can you not see that?"
Generally, he'll change the topic for then. If I do it enough, he won't bring it up again. (Just that particular show though, not other things that could be considered pedophilic)
Note - if you apologize for losing your temper, he might take it to mean that you approve of his views and were just having a bad day. (My friend did, once. I stopped apologizing)
This approach depends on :
The last way I know is to distract them. I do this with an acquaintance who loves playing 'devil's advocate'. He's actually very smart, so he'll win any reasonable debate we have. When I'm talking to him, I stay on topics that aren't political - classes, gossip about mutual friends, etc.
Whenever he starts to rant about something, I cut him off with something like, "Yeah, you've told us this. Are we gonna argue this again? Oh, by the way, did you guys see the ..."
This approach depends on :
This is my least favourite approach because I find myself analyzing all of his opinions for influence from political views I disagree with. I'm also a very confrontational person when it comes to some political issues, so I usually need someone else help us stay away from debates.
Good luck!