Look deep inside yourself and ask if you really want to be friends with this person….or are you just hoping for a relationship. If you truly want to stay friends, then you’d be happy your friend is in a relationship.
If this pains you, there is no shame in cutting someone out of your life because it’s too painful for you. “it’s not you it’s me” is a meme, but it’s a legit reason sometimes