You had him, but you couldn't hold on to him, and now you mourn what might have been. You still see him around, and that makes things worse. Accept that you will eventually run into your ex, as it may be impossible to be totally rid of him. Resolve your unrequited feelings for him, or start packing your bags.