Have they extended you grace in the past?
Have you been perfect? (Hint: probably not). In the past, did you do something that you now realize was definitely wrong? You saw something the wrong way. You were at fault. And you see that now. These friends didn’t leave, did they? And you know that they 100 percent saw you were the jerk in that scenario. So, if they extended you grace then, maybe you don’t have to cut off the friendship now.