What techniques, tricks, thoughts do you use to stop yourself from feeling like your self worth is connected to getting laid?

I didn't get any attention from girls until the end of university, which is an insecurity of mine, which therefore feeds into neediness. This despite having having a major glow up and becoming much more experienced since. I'm looking to crush that inner voice who still brings needing to get laid into the equation and makes me needy.