It doesn’t have to be right or wrong, black or white. Perhaps you did something you regret but it doesn’t make you a bad person! You did the best you could from the perspective and awareness you had in that moment. It is alright!
The best thing you can do now is to forgive yourself. Pracice being kind, gentle and loving toward yourself, no matter what you have done in your past. Treat yourself like somebody you really like and be patient with yourself.
Even if there are 99 awful, unwanted things in your life and only 1 thing you kind of like – give most of your attention to the 1 thing that feels good to you. ❤ The more you practice making the best of everything, the better life will be for you.