He’s talking to his ex???

I’ve been talking to this guy for about 2 months now. We always have a great time when we hang out and we’ve both told each other we like one another and like being with one another. A few days ago he tells me that him and his ex are kinda talking casually again and she wants to get back together. He told me he doesnt know what to do because he likes hanging out with me. (Keep in mind, they’ve gotten back together literally 5 times within the past year or so). So I asked him if he was considering getting back with her and he said “I was but not really anymore”, this was all said over text 4 days ago so I haven’t had the chance to talk to him about it in person yet. But I told him I really like him and I would like to see where things go with this but if you’re going to consider getting back with her then I don’t want to waste me time. He told me he knows and he doesn’t want to waste my time either. I just don’t know how to go about it, I don’t know how long to wait for him because who knows how long it’ll be before he makes up his mind. But I really enjoy being with him so I don’t want to give up yet. I’m just not sure what I should do about this whole situation. I think the fact that he told me they’re talking is a good sign instead of hiding it but still it makes me feel uneasy, I don’t ever want to be someone’s second choice.