Snails also eat goldfish feed in the fish tank, or eat algae moss and fish poop on the tank wall, but there is no need to feed him specially, that is, leave him alone.
There is basically no harm, and parasites are not excluded. He will lay eggs everywhere, but the eggs will not hatch, and goldfish will basically eat them, so don't worry, you can raise them together.