l have to assume these plants are on the out of doors deck or patio. With constant water and shelter from enemies pots are beloved by earthworms. Earthworms are in all ways beneficial to soil and not once have I ever seen a problem caused by earthworms. Not once and I have lived in the cultivated world for 5 decades.
I would up pot with fresh potting soil in the fall before winter sets in to bring the plants indoors (do you acclimate them before bringing them in or taking them out of doors)?
When you take them back out of doors for the summer, elevate the bottoms of the pots off of the deck or patio using rock or tile pieces. Turn containers upside down and use for a prop or table to elevate the pot off of the surface. Make groups of pots with different elevations. Earthworms will not be a problem.
Nor will rotting deck material from the constant moisture.
Earthworms are very cool but not indoors, please! If the pots are elevated when out of doors with enough ventilation to dry the water beneath the pot after watering, earthworms will not be crawling up to find condo property that doesn't fit their needs for constant moisture. When they have babies there are a lot of worms, a lot. All we need to do is discourage earthworms from buying property in your pots. It is also a good practice to discourage over watering and fungus.