Actually you don't need any ritual
I have been delt with many toxic cases and can say I could see patterns and karmic situations from Miles away
And actually detached myself with all kind of situationships and stuff related to dating and soulmates and karmic soul ties and familiar unhappy souls
1.write everything you always cencsoerd and never tell in a long text and ask for forgiveness or explain to them that life has changed or this relationship won't work anymore, and you want to end and in the end say goodbye.
And declear you are done with them
(You can do suddenly ghost them and skip this step and jump to the step 2-3)
2.Make no contact,
Don't text , call ,dm on social media whatever
3.Block,unfollow, call blocker, change your phone number and stuff
4.do they know we're you live?
If no, then move on and
Start a self care routine,
It can be anything
Working out, book reading ,anything you like to enjoy
And meditate and also learn your actual lesson and don't repeat them , this situanships keep coming back if you don't break the pattern and changing yourself