Son swears for fun

Hi, I just joined and this is my first time posting. I have two children, both on the spectrum.

My son, who is 13 now, has learned swear words from the internet. My wife and I have tried multiple ways to talk to him about not using swear words, and to at least replace them with less offensive words, but we've had very little success with him retaining that.

He definitely isn't stressed when swearing. He wants the reaction that comes from people being surprised to hear him swear, and he laughs so hard from it. Unfortunately we know we can't control how other people react, especially at school, so it seems hopeless to teach him through positive reinforcement that he shouldn't swear when he derives so much pleasure from it.

Any ideas? Thanks in advance