How can I stop feeling regretful?

I constantly think about the mistakes I made in the past and I feel very bad, I even have anxiety thoughts that bad things might happen to me.
How can I stop feeling regretful?
Post Opinion