I would imagine that if you are now technically clear of the virus, and what you have are "long Covid" symptoms, then imodium when really needed would be okay?
But I stand to be corrected if anyone knows anything different. Do check with your doctor.
During Covid, I had no gut issues, but I'd had some IBS-D symptoms just before it. Then for 6 weeks I had NO IBS! Bowel movements, gas, bloating pains, etc.....all normal.
However, a couple of months after apparent recovery from Covid, my IBS started up again (no stress involved in my case) It hasn't completely gone away since, and that's 2 years ago. I am confused because I have no idea what happened there. Why better during Covid and for some weeks afterwards?? Yet why has IBS got more on-going and chronic since?
I don't know in my own case, if it's long Covid, or something else. But I have been slightly better recently.
There is a thing called "post infectious IBS", so maybe you have that?