Missing my ex.. HELP

My bf of 9 months and I just broke up 4 days ago because of distance issues, and I miss him so damn much. We still talk as friends, but it’s so hard. The problem is, there’s a girl that he may have feelings for but he’s a little confused. Should I try to get him back? If yes, how??