Regret
Regret only hurts until you have learned the lesson it is trying to teach you.
Know that it was a mistake made, and change your actions so that you don’t make the same mistake again.
Start regretting early, so you have time to change the things you mess up.