It’s erroneous to think you could have done something differently than you did. Every circumstance in your life led to that behavior. While you might see how you would choose differently in the future, don’t waste a moment in regret. Now you know better, be grateful for the lesson.