Toxic relationship

I left a toxic relationship 2 months ago and I’m having regrets is this part of the process? Like I keep telling myself I ruined something even tho the relationship was causing me pain