I'm pretty sure you can regain the ability. Covid damages the brain, and the brain "forgets" how to do certain things (like smell or visualise or focus), but brains are incredibly powerful and flexible, and can re-learn these things. I myself have long covid and lost a lot of sensing ability, but have been able to improve my senses of smell and touch by training with promising results. Here are some techniques people have used to help learn/relearn how to visualise: https://www.reddit.com/r/CureAphantasia/
Can't hurt to try, right?