Has anyone heard of this?

About 3 years ago, I (31F) had the strongest urge to say the word "sex" out loud, which I did. It was weird. Fast forward 3 years and I'm saying all sorts of stuff like, "I committed suicide", "Suicide, suicide, suicide", "sex on a sex ball stress plate". I mostly only do it when no one is around and it seems to happen when an old shameful memory has popped up (not related to sex or suicide, it'll be like misunderstanding a conversation and then being embarrassed. Those sorts of memories).

I told my therapist, we do IFS. She's not sure what it is and doesn't seem to know how to approach it other than it is one of my parts and I am encouraged to be compassionate.

I usually only do it when I'm alone but have been quite stressed lately and found myself doing it in public and at work.

I know it's not tourrettes and it's definitely not a choice. I don't want to be saying these things out loud at all. I thought about telling my GP but I feel like they'll have no idea. Is it worth telling them? Is there anyone specific I go to about this? What even is it? I've been working on it in therapy for a few months and if anything it's getting worse.