https://www.medscape.com/viewarticle/975400 is interesting and seems to directly contradict what is claimed here.
"Herpes zoster does not appear to increase dementia risk ― on the contrary, the viral infection may offer some protection, a large population-based study suggests."