What does it mean when a person dreams about an ex-boyfriend whom you almost married?

It means you are thinking about them. Maybe you love them, maybe you hate them, but they are on your mind.