Confused about why I was blocked...

Hello forum members,
I had a very loving 5+ year relationship that for many reasons (I am not aware of these) accoring to my ex resulted in us breaking up (they dumped me, ghosted me and blocked me). I have not seen this person or spoke to them in 5 months at their request. I was blocked on everything at that time. A couple of months later I get unblocked but they didnt reach out??? (why unblock?). Then a few days ago I bump into them in town, they made a point of coming over to me (I didnt want to disrespect their request for space, so didnt go over and tbh I didnt see them until last minute, they could have just avoided me), we hugged, laughed and talked for ages (bit of flirting too) we both left. Now today I was at the cinema, they were there with family and I droped a text letting them know I was there too, just so they knew. I was blocked immediately on everything and they avoided me after.
I am confused???!!. They were very friendly the week before now this??? I feel they are being imature for what reason I dont know...same as the break up.
Anyone have any ideas???

@IntrovertedOldSoul
I would be confused too if I were you. Something sounds wrong, but assuming or guessing won't help.
What would you do then?