<human>: Summarize the given text in a few sentences.

So, I dated my ex for maybe 4 months. I broke up with her about eight months ago and since then we've decided to stay friends. After we broke up I still definitely loved her but because of differences we had on topics of religon and sex I knew we couldn't really be together. 

So she began to date my best friend [20m] and she frequently comes to me with her problems with him. I like being there for her as much as possible but at the same time it really tears me up inside to hear the details of her new relationship. It does really suck that it is my best friend she is now dating, and although I don't want to lose either friendship I also want to tell them that I have to keep my distance from both of them. I guess it's a simple question, how do I tell them that I can't speak to them for a while, maybe a long while like a whole year or however long it takes me to be ready?

Some more background though. I've known these two since middle school so they qualify as long lasting and important friends in my life. There is a side of me that does not want to lose the friendship but simply speaking to them makes me deeply sad and prevents me from move on.
<bot>: My ex and best friend are dating and both still talk to me, I want to tell them I can't continue to hang out with them.