She chose her ex. That’s it. Don’t pursue someone that would choose someone else over you. You deserve better. It’s hard to see past her right now, but give it time. Someone else will catch your eye and they will be 10x better than you ever hoped for.
Chasing/longing for someone who is in a relationship with someone else and WANTS to be with that other person? Never good. You’re the one who will get your heart broken. Don’t do that to yourself. She’s just not the right one.