I’m getting used

How do I stop this cycle? I’ve been with my Ex for about five years we broke up about a month ago and now I know he’s talking to other girls I still see him, I still have sex with him. But other than that he does not care about me I know he doesn’t. I want to stop this cycle but I feel like I still love him. And I’m not sure if it’s love or if I’m just used to being with him, I need advice on what to do☺️