Oof. This happened to me before with my bestfriend who was a dude.
The girl wasn't my ex or anything, but he said he liked the girl I liked, and like a moron I didn't tell him how I felt.
I mean I'm happier now with my current gf, but lol I could have saved a lot of heartache with my friend had I sorted it out with him