Your ex is a distraction, and I am willing to bet you're a stay at home mom who has nothing else but her family.
You need friends, and outside, healthy activities that make you happy, and have something to share with your family. Right now your ex does that, but there are better ways to feel good about yourself, that's what hobbies are about. You won't feel guilty about it either.