if your 100% sure that the friend likes you, then get her to be
your gf first, then you and her go explain to her ex (also ur
fren)
if he's a good fren of yours, he will understand and congrat u, by
doing so, then you will truely have a genuine fren who will stay by
your side or maybe support you mentally as friends, instead of
backstabbers.