Casual sex????

I was wondering how do I deal with this situation? Okay so I met a guy at work and basically my phone fucked up and so my parents couldn’t track where I was and let’s just say I had sex with him in his car and then about a few days later I have sex with him in his house and i told him I really liked him and he said he liked me too and I went to go see him last night cause he said I could come over the day before and he just read everything else I sent him and he never said not to and I go over there and he’s with his ex wife.... I’m low key hurt about this but like I can definitely move on but I was starting to get feelings for him I mean if him and his ex wife get back together kudos to him because they have children together, but I’m not sure how I feel about it....