This happened to me too! I feel like in my dream state, I’m able to have coherent thoughts about my OCD. I think I even identified myself doing a compulsion in the dream. Like of course I don’t remember it 100%, but I woke up the next morning and googled if it was possible for OCD to affect your dreams.
My OCD comes into my dreams allot, some distress me more than others but I am able to recognise them as intrusive thought dreams now.