How to not let feeling rejected by my coworker impact my self esteem?

I know I shouldn’t have a work crush and I don’t I was just attracted to him. When I first met him we introduced ourselves because we were right next door to each other and we realized that we had both graduated from the same college and we were both from the same state.. and other things. So I said wow we have a lot in common! I thought i had a work buddy or at least we would be cool no awkward ness.

Things were cool then he started getting hot and cold so I thought maybe things were misinterpreted or he’s not in the mood to talk… but I just took it as disinterested in me as a person. And that’s fine…

He is a reserved guy.. but he seems to be warming up to people and other female coworkers… there’s one coworker who likes him and he seems warm with her and me and her are cool.. but I started distancing myself because I felt like he didn’t really want to talk to me.. and it hurt

But how to not let their dynamic get to me especially when hot and cold behavior triggers my nervous system

How to not let feeling rejected by my coworker impact my self esteem?
Post Opinion