Here is a good quote I saw the other day:
"Don't attempt to reconnect with toxic people from your past just because you're feeling lonely. Focus on getting better and attracting better."
I have fallen into this trap a few times over the years. I have learnt to concentrate on myself and then you will start to attract the things and the people that are supposed to be in your life.