Relationship Buffering

I’m going through a divorce and am sure that I am using a new relationship to buffer, but can’t seem to stop. He’s an old friend who I started hanging out with. He’s super charming, dances, and says all of the right things… when we are together and sometimes when we’re not. But he runs hot and cold. He rarely asks me out in advance and it looks like he drinks too much. He often asks me to go somewhere and then forgets or just doesn’t follow through. I know he’s no long term prospect but I am over checking for his messages and keeping my calendar open for him too much. It’s dumb and I don’t know why I keep doing it. It’s like the euphoria when I see him is a drug that I want again. I’ve run models and think I understand my thinking but still act the same. Help.