Sure, we all make mistakes. But I think it's healthy to look back on those with regret rather than just shrugging it off. It's hard (even harder) to change otherwise.
Doing better doesn't mean you have to regret things. You can just accept you weren't perfect, understand you now know better (but still not perfect), and move on.