Regretting a stupid move with a guy!

I was talking to this dude for 5 months. It wasn’t just sex, it was always hanging out and doing couple things. It was always up and down. It would be really good but then he’d ignore me and act weird for a bit, then act like nothing happened. Towards the end of the year, we started talking every single day. He just started a demanding job but would make time to hang out with me. We didn’t hang for NYE but we talked after. That weekend after he started acting short with me and I wasn’t sure why. After that, we’d barely talk and he straight up ignored me. I texted him one day asking if he wanted to hang and he said he was busy. I just texted back saying okay. A mutual friend told me he said I was being clingy, which I noticed as well but I think I was just freaking bc of how he was acting (not an excuse). This was a few weeks after we hung out.

Now, it’s been a month since we’ve hung out and a few weeks since I hit him up. I wasn’t going to text him at all but something came over me and I did last night just asking if he wanted to grab something to eat bc I was in the area. He never replied but of course watched my stories on all social media’s. I feel like an idiot bc I was being so strong not texting him and people were telling me not to and that he might just need some space for while and will text me. But I feel like completely messed that one up for sure. I also feel terrible for coming off clingy. I didn’t mean to be that way at all and I so badly want to text him a short apology for that but i dont think I should?? I know I can’t contact him anymore. Help! I feel terrible.