I don’t get it

Why does my ex care if I am with someone else after he left for another girl then blocked me for months? He unblocked me when he found out about my new relationship.

Why is he jealous of him? He literally left me. We dated three years btw. I just don’t understand. He told me he didn’t care about me and he never thought about me but soon as I moved on he came back. He told me his girlfriend didn’t know he was talking to me (she hates me and told him not to talk to me) and she didn’t have a phone so he wanted to talk to me to waste time. I ended up blocking him.

He said my boyfriend will break my heart one day and my ex doesn’t want me to “get hurt”. He doesn’t know my boyfriend at all. He said he just wants sex. He kept asking if I’ve done anything with him. I told him it was not his business. I don’t have sex because I am still a teenager and I don’t feel like it so...

We were talking about my dog and he randomly asked me was I messaging my boyfriend. I was like “um yeah why?” and he said he was just curious. Then he starts talking about how he is mad that he can not see his girlfriend anymore because her parents won’t let them hang out. I was like “well I see my boyfriend all the time” and then he got mad and was like “uh okay? Don’t care why should I?” Me and my ex did everything together for three years, we always hung out so he probably hates he can’t see her.

I’m 17 and my boyfriend is 18 he was telling me not to have sex with him because it’s “illegal”. I just don’t get what his problem is. I’m not even having sex rn. He just needs to get out of my business.

Right before he started asking about my boyfriend and being nice to me he said this “you ruined my life, I was so unhappy with you. Now that you’re gone I noticed how it was you that made me unhappy”. Then why did he want to talk to me so badly if I make him so miserable? I gave him the world. I never treated him badly he’s just making stuff up. I’m so happy I blocked him. He was so annoying🙄

I told him I was really happy for him and that I wished him the best in life but he can’t just come back into my life when he hurt me three months ago and told me I was a piece of shit.

I wrote way more than I meant to but why is he jealous is he left me? If he says I’m the cause of his unhappiness?