Should I wait for my ex ?

My boyfriend of 4 years broke up with me 2 months ago. He still texts me and we have hung out a few times since. I’ve asked him if he wanted to get back together and he said no, because we weren’t getting along and that’s why he broke up with me. But yet, he still wants to talk to me.

I don’t know if I should wait for him or if I should move on. I have been on dating apps but it doesn’t feel right.

Any advice ?