But a joke is not automatically racist because it involves race. How do we determine whether a joke is offensive or not?
What if a groupd of black people are telling each other 1970s racist jokes as a way of mocking the stupidity of old school racists - they are laughing at the idea that the joke could be funny, laughing at their incredible superiority to the sort of mindset that thinks the joke funny. Is that racist?
Jokes work or fail dependent on the comedian, their persona, the situation in which the joke is made (eg the same joke may be 100% fine in a lesbian comedy club but at the Royal Variety performance it would be a bigoted car crash), the audience and their expectations.
Some subjects, like disability, are best to avoided unless you are disabled or you are an INCREDIBLY talented comedian who has REALLY thought the joke through.
I think of a list of subjects unsuitable for comedy as a list of things that I shouldn't make jokes about... but are probably the subjects of some of the best jokes when done incredibly well by incredible comedians in the right context.
Sometimes a joke can be deeply offensive when told by one person to an audience who laugh along, but hilarious if told by another who laugh at the idea that anyone could be so backward thinking that they would make such a joke in 2022.
Frankie Boyle style shock value has a place, though Boyle's particular schtik is getting pretty fucking tired now, and some things he says and doe are terrible (but then again, the odd terrible joke from a comedian is a proce worth paying for good comedy, most adult comedians take risks, and if you take risks you will make mistakes, and whilst I love some truly harmless comedy - tim vine one liners may be a good example - a bit of an edge is preferable as a rule.
If I tell a really dark joke about cancer as a way of coping with a relative's passing am I a bad person?