I don’t think your decision about this relationship is wrong. What I understand is, she was considering you as an emotional support, and probably never wanted you as her love. She made a choice of a protective guy over a guy who loves her. Now that the things have not worked out between them, for the reason best known to them, I don’t think that you should jump to play any role. She might come back to you or develop a feeling for you out of her multiple rejections, but in that case your future relationship will not be in a good test.