SATIRE: Writing a character as racist in order to call out that particular brand of racism, deconstruct its normalisation and belittle those who demonstrate it in the real world.
NOT SATIRE: Writing a character as racist to “shock” audiences and “push barriers” because you think that’s actually a beneficial or important part of comedy.
Which, incidentally, is only something you think because you’re an ignorant and talentless hack.