He has a whole another life without me..

My ex has a gf, they’re not happy together, him and I ended on somewhat complicated terms, we’ve always had a soft spot for eachother but he’s with her because she put up with the shit I refuse to (cheating etc.) however, ever since I posted a photo on snap the other night, with a guys hand on my thigh (you know those viral Instagram/tumblr style photos), he’s been acting some type of way. We go to the same gym and usually he says hi if he’s working out near me but since that photo, he’s been acting like I don’t even exist. That’s not the issue, I’m fine without him but I’m not understanding why men are so immature when it comes to these things. Does it mean he still feels something for me or is he just being selfish?