Trumps criticism isn't racist or misogynistic. It's pure genius.
Those 4 women belong to a subgroup of democrats called the Justice Democrats. They are way far left of even the left in the traditional democrat party. They carry almost no weight in actuality since 4 votes are nothing in congress but they continue to make headlines because of their "wow" factor.
Trump has made those 4 wackos the face of the democrat party and has suckered Pelosi into embracing them right after one of them called her a racist. This is going to drive the independents and moderates over to the republican voting ticket because most aren't going to align themselves with the squads overly left leaning views.
Trumps tweets are purely political tactics and are working magnificently. Pelosi used to be the democrat headliner, now it's the looney squad.