Friends with your exes?

I'm wondering how many people with bpd are able to stay friends with their exes because i find it tough to do so with mine but in my defense they've all been pretty hurtful and have harmed me in some capacity.

I'd like to know how a person with bpd can navigate staying friends with an ex without any past feelings resurfacing?