As for the micro-dynamics within that dysfunctional relationship, I would have counseled you to distance yourself from the drama. When your best friend confided in you that she was texting your ex, you learned something about her and let that relationship go. Then, your ex’s girlfriend started texting you to dump her relationship problems with your ex on you. Not a great choice on her part, but… I would have suggested you use a boundary with her because her attempt at drawing you into her relationship drama was inappropriate. I would also have told you not to show your ex the texts between his ex-girlfriend and your ex-best friend, etc. — because it was just stirring the pot (a pot you were not really part of). And now, your ex-boyfriend is asking you to get lost so he can try and work things out with his recent ex-girlfriend. Can you see, reading this, how there’s really nothing in this for you, except drama?
Move on. Let your ex-boyfriend go. Focus on healthy relationships — without gossip or drama.