Dear Abby: My mind keeps getting stuck in the past

I can’t seem to stop thinking about what I wish I had said. I don’t know why this is happening or how to stop it.