It’s complicated or not?

This girl I have a history with says she loves me and all but won’t get rid of her ex she blocked him on everything that’s what she told me but my friend spotted them together should I just leave? Or is it bc she’s using him as a safety net incase her and I fail?
It’s complicated or not?
Post Opinion