So here is an interesting one: I have two friends that have a wife in common. They are best friends and bandmates. Oddly, it works perfectly. The former couple, though their marriage ended in a lot of hurt, are mature people. The ex-husband has solace in that his best friend is also his kids' stepfather.
The former couple understand that for many reasons, they were not right for each other. It doesn't they are bad people. I'm sure my second husband would tell you I'm the devil, it doesn't mean that I'll make someone else miserable or vice versa.
This can be positive. It's about mindset and you lay an amazing foundation for how to build that! Well done.