Hard time being alone

Hi everyone, I’m finally starting to realize certain things and honestly sad to say but I’m terrified of being alone so I’m constantly “talking” to guys. I don’t want to rely on men anymore, I’m 24 and I just got out of a 2 year relationship and I’m having a difficult time being alone. Pls someone help, I don’t want to start talking to another guy just because I’m afraid of being alone.

Any tips, I want to break this bad habit of mine. It’s been 3 months since the break up and I’m so depressed but I’m avoiding men