Weird dream about my ex

So we will start this off that I literally never dream. But I just woke up from a weird dream.. I dreamed that I saw posts on social media where a guy was calling him out for talking/ flirting with his girlfriend. Why am I dreaming about him? He broke up with me, because of some of the things I do, why can’t I get him out my head? Lol help!