It's good to regret
If you ever catch yourself hating at yourself for the things you have done in the past, regretting it. Don't beat yourself up, be proud of yourself. That means you're now a person that would not do such things, that's why you regret it in the first place. That means you're moving forward with yourself, embrace that.