Working with an ex you still love

Emma
I'm writing this for a bit of advice...I'm 25 & was with my ex for almost 2 years. He cheated on me with his ex during that time but I gave him another chance...he then did it again and we broke up. 
Even though I'm mad at him I still love him very much, and I personally have a very deep connection with him as he was the first man I ever slept with and we get on so well. 
He says that he doesn't want a relationship with anyone because he wants to 'be free' (basically he wants to sleep around), but then he says that he cares so much about me and doesn't want to lose me. 
I've tried to move on but we work together, and everytime I see him I just want to give him a hug and chat to him...but obviously he's hurt me a lot and I know I deserve better. 
I feel very confused & don't know what to do for the best!!! Please help! How do you deal with the heartache of working with someone you still love?!?