Was I right to let her go or should I have approached her?

NamedGuy
So, this is from my last workplace. There was this girl who I noticed, used to stare at me from time to time but never ever approached me, greeted me, etc. When she would be standing next to me, she completely ignored my existence. Her friend used to greet and talk but she wouldn't even look at me at that time. Most of the times when she used to stare at me, she would either be alone or at a distance. She even picked the same frame for spectacles that I use, for herself. Because of all this, I sort of started developing feelings for her (I think). [I think a lot by the way (overthinker).] Our company let go of most of us because they were closing down. She got laid off a month before me. During the last few minutes on the floor, she was talking with her friends and suddenly she turned and looked in my direction. I noticed that but I wasn't looking directly at her. Nobody did anything or said anything. It's been a year now. About me, I do not like myself at all because my mind is corrupted and I get very bad (read lustful) thoughts (about her as well) and I hate myself for that. (I wish to stab myself.) So I believe that I didn't actually like her and it is just the lust in me. I blocked one other girl for the same reason and thought never will I fall for it again but here we are. I think of so many reasons she should not be with me and that's one of the reasons I didn't approach her. Another reason being, I'm an introvert and shy so I am scared to approach her or any other girl anyway. Also, she's well-off. I'm broke. So this is the thing. Everything is happening according to the wish I had, to keep her away but yesterday something unusual happened. I felt like I have finally lost any feelings I might have had for her and it felt so uncomfortable and I was trying to get back to that moment but was unable to. Feel like I've lost her but that's what I wanted, right? Why do I feel uneasy then when things have worked out just like I wanted?
Updates
+1 y
I wanted to let her go so that she could get with someone that is good for her so that she doesn't waste her time or ruin her life with me.
Was I right to let her go or should I have approached her?
6 Opinion