How to forgive your younger self

How can I forgive my high school self for the mistakes I made and then my early 20s self? I didn't know any better but still makes me feel bad. I know I'm a good person and good friend but I wish I'd put more effort into my high school friendships and not just gone with family friends and chosen people over others. I know that was wrong and I want to forgive myself. Any advice?