I might get some push back on this but I think it's important to draw a distinction between racial humor and racism. Racial humor is fine, as long as it's actually funny, isn't punching down, isn't mean spirited, and isn't leaning into actually harmful stereotypes. The same goes with things like LGBT topics and beyond.
A good example, I think, is Dave Chappelle's recent "jokes" about trans people. He thought people were yelling at him about making jokes about trans people in general, and cried like a little bitch about being cancelled (while raking in millions from Netflix specials, mind you).
Contrary to popular belief, you can actually make jokes about trans people, trans people will laugh at them, and [almost] no one will yell at you as long as they are funny and good natured. The problem with his jokes is not that he was making trans jokes. The issue was that his jokes were lazy, unfunny, and basically just amounted to "Hey, trans people are weird right? LOL!!!!!" with no thought or imagination beyond that.