So I managed to somehow find the fix for this. For some reason RGB fusion was the cause of my mic not working when my controller was plugged in. I noticed the RGB flash whenever I plugged in my controller at the same time my mic would stop working so I thought I might as well test it as I tried...
My mic stops working after plugging in my controller.
Most of the time it remains connected to the pc as a default device but sometimes it doesn't recognize its plugged in.
I have disabled the audio playback and recording of the ps4 controller.
My audio interface still picks up me speaking but...