Why does he keep coming in and out my life?

My ex and I have been getting back together several times, but after each breakup he always seems to come back to me. Our last breakup was 2-3 months ago and he came back around a month ago, we had a thing but then 4 days ago he cut me off completely and apparently he had been talking to another girl as he was talking to me.

He came back again two days ago and told me he does not want to date anyone and that there will never be him and I again, but this is something he’s said before yet he still calls me baby etc.. Why’s he being like that? We had a long distance relationship which was an issue for him but why come back if you know the circumstances?
Updates
+1 y
Also, do you think he’s going to want to date again? He admitted he still liked me yesterday.
Why does he keep coming in and out my life?
Post Opinion