It’s alright man. Everybody has something in and out their closet. Learn from it and move forward. I’ve honestly seen most people figure things out in their mid to late 20s… I had a serious issue occur when I was 22 that dragged on for a decade. you are allowed mistakes in your life regardless of what anybody says; just learn from them the first (or latest second) time.
Good luck