Whole thing is in understanding the concept of “sexist, racist jokes”. Personally, I often take part in situations when people make jokes about … racist, sexist, homophobic jokes. So this is undoubtedly the subject of these jokes. I don’t see anything wrong with it as long as the comedy is done in good taste and doesn’t hurt anyone.
Humor is an extremely broad topic, understood in many different ways, which in principle has one goal – to entertain. The canon of comedy is laughing at yourself. Excluding certain features (gender, sexual orientation, nationality, skin color, eyes or anything else) from this topic by the community’s stereotypical approach would also be discriminatory. Attempts to impose restrictions on the abstract of humor would be naive. The fact that people, in their stupidity, use it to hurt other people should not mean we can’t use them in a good way.