Brain fog can be very hard to get through. Distractions by reading, learning, and doing something to get out of the constant 'thinking'
I would see a professional if it causes such distress.
I have taken medications on and off for years to help with my mental health issues and the brain fog after I quit drinking didn't truly leave until almost a year later.
It will pass, the brain is an amazing thing and many factors will effect it's neuroplasticity.
It does get better with time.