There's a lot more to the relationship between pathogens and neurological conditions. This article has some good information: https://return.life/2022/05/endemic-pathogens/ (Please ignore the clickbaity tone, there's actually good stuff here).
We know there are a ton of correlations. We don't have causal links, although there is quite a bit of speculation about inflammation.