Mucus feces are not usually associated with worms, but rather bacteria or protozoans. This can also happen from a change in diet or for no apparent reason at all. I talk about it a bit in this article (click on the PDF at the fight side of the page).
Mucus: The Slime that Binds Jay Hemdal C. 2020 This article examines the various causes of excess mucus coatings on fish, as well as fecal mucus issues. ------------------- The mucus produced by the fish’s epidermal cells gives them their...
www.reef2reef.com
In your fish's case, I would just observe it for continued or new symptoms. At some point, you could try General Cure in the water (in a treatment tank). Medicated foods are tough to dose properly, there are two article about it here.
Jay