Hope you don't mind me weighing in again. I have personal experience with this, so I'll share a bit
For me, it was a process. The things I did were pretty shameful, and I did them because my mind made me feel like I had to. That was before I knew about OCD, or that I had it. And it stuck with me for a long time. It still does, but it's less painful now. Here were the main things I realized
1- I had to let the past be the past: I was so ashamed and scared that I'd do something like it again that I just wouldn't let it go, wouldn't relax, wouldn't trust my therapist or exposures, and it just kept me spiraling and feeling horribly depressed. I had to trust the process I was on with my diagnosis and treatment. I had to work at it even though I was scared. I couldn't tell myself it would go well, but I had to trust that I had learned a lot since those old experiences
2- I had to look toward the future: I had a huge fear that what I'd been through had ruined me beyond repair, and that it would come back to ruin my life. It made me not want to try to enjoy my life or get better because I felt like everything would fall apart one day and everyone would hate me. I had to realize that this was fear mixed with regret from my past. Instead of looking at the future from the lens of my pain and fear, I decided to keep asserting that my future could be better, and they I would work to make it happen, even if it may not work out
3- I had to feel bad at times: While we don't want to constantly sit in regret, it is important to process that and other feelings. It helped me get out feelings that were repressed for a while, which made them not come up as often and as powerfully
4- I had to let myself feel good: Too often, I beat myself up and just locked myself into my anxieties because I felt like I couldn't trust myself or move on. I thought subconsciously that to do so would be to say that I agreed with what happened in the past, or would be an indicator that my worst fears had come true. My mind told me that if I wasn't ashamed and anxious, that must mean I had become so bad that I didn't see it as a problem before. I had to recognize that wasn't true, and I had to try to make myself feel good even when my mind told me I had no reason to
5- I had to vent a bit to my therapist: I couldn't just keep things inside. I was so afraid of what might happen if I talked about these things. On the other hand, I wasn't sure if I was giving into a compulsion by talking about it and getting my perspective out. But when I told my therapist more it gave her a better picture of what was happening, and she was able to get me back on my feet
I'll leave you with one more anecdote. There was a time not too long ago that I was feeling miserable, and just listening to sad music. But one of those songs had some lines I won't forget. It said "all that matters is the time we have. Doesn't matter how it all went bad. Never wonder what it might be like. Shut the door say goodbye. When faced with tragedy, we come alive or come undone"
This really struck me. I noticed how much I was burning myself down by beating myself up when I could be moving on and improving. I didn't need to worry about where I messed up or how it could be avoided. I didn't need to worry about what would happen in the future, nor imagine what life would've been like without that experience. What I needed to do, was accept that it happened, and not feel defeated because of it. I needed to shut the door on that time, and not just spiral over the thought of it. I noticed because of that song that those events were a personal tragedy, and that I could acknowledge that while still trying to come alive again instead of coming undone over it. Because coming undone over it was not going to change the past, wasn't going to make me feel better, wasn't gonna give me clarity, and it wasn't going help me now.
Now that's not to say that I was instantly better, but it allowed me to go through this process knowing that I was going to change, and remembering that every time I fell back into that cycle of regret it was OCD, and that I'd be back to normal soon enough
So idk, I can't give solid advice because these are personal things and there's really no answer. Find what works, be patient with yourself, take care of yourself. I hope you get something fromy experience that you can use