<human>: So a little background about me is in order.

I'm a heterosexual 31M and I have very little romantic/relationship experience. Until the relationship that just ended, the longest relationship I've ever had was 2 weeks and it barely even counts as one. I tend to be afraid to approach women and feel awkward doing so, and while I don't have low self-esteem in other areas of my life, I do lack sexual and romantic confidence.

My GF [27F] broke up with me last night after being together for 11 months. It wasn't a sudden breakup; the issues leading up to the break were apparent for months beforehand. Now, there were numerous problems with our relationship, but the one that essentially damaged it irreparably was the fact that, due to my lack of sexual confidence, when she would not be interested in sex, I would feel hurt and take it personally. Eventually this led to her wanting to have sex less often, which led to me feeling more hurt, complaining about how our sex life is dying, etc. And it just snowballed into the relationship ending.

The truth is, neither of us really wanted the relationship to end but neither of us could think of a way to repair it after the damage that had been done. Anything I do now to fix it will be interpreted through the lens of trying to pressure her into sex, and I think it may be difficult if not impossible for me to resolve my issues regarding sex and approval while in a relationship.

I know I am responsible for handling myself properly, and I probably wouldn't have handled the situation in such a blatantly poor manner if this weren't my first long term relationship. I think I wanted sex for approval, which isn't healthy. What I need help with is; how do I become more sexually confident so that the next time I am in a relationship, the same thing doesn't happen again?

Can you summarize the given text in a few sentences?
<bot>: GF broke up with me because I complained about a lack of sex, how can I make myself stop seeking sex for approval?