Help!!!

So I am not sure this is where this should be posted but I need help and opinions... my boyfriend and I have been together for 6 months. He just told me that he is married but legally separated. He has been hiding it the entire time. I’m hurt knowing that he hid it but definitely not worried about the marriage part because they have been apart for almost 2 years. How would you handle this? Help me clear my head from a woman’s point of view please!