The idea behind racist jokes, many are hilarious, is not being offended when it is your race, gender, religion, political party, profession, etc. You can make a good funny, a legitimate funny not a hateful one, about anything I represent and I will not only laugh but probably repeat it. Free speech means not being thin skinned and “offended” by personal insecurities. I think we have forgotten what free speech is about, not to mention how to laugh.
Years ago before WWII we lived in a very ethnic diverse neighborhood. The children all had their own call out for the different nationalities and no doubt were influenced by parents talk. My brother and I being of Russian parents were often referred to as Bolsheviks. There were names for Jews, for Portuguese, especially for Germans, for Africans, for Italians, for Pollocks, for Mexicans. The most frequent for Scandinavians was ‘dumb’. As I recall the children didn’t think about the nicknames. When the time came we all went to WWII with good memories of our childhood activities without regret or rancor.