I've heard this referred to as the Karpman Drama Triangle. Same idea. Key is to flip the script on whatever role you are in from cycle repeating behavior, to cycle breaking behavior. Look up "The Empowerment Dynamic". It takes some practice if you are stuck in the triangle and requires changing your attitude towards the other person (and yourself).