Why does he compliment & flirt with me if he’s not certain he wants to to get back together yet? Ego? Validation?

He said he needs to sort himself out emotionally after a divorce but I don’t know whether that’s the whole truth or whether it’s an excuse to keep options open.

Why does he compliment & flirt with me if he’s not certain he wants to to get back together yet? Ego? Validation?
Post Opinion