Whilst ants don’t harm the worms as such, they will take the worm eggs—this will obviously affect future generations, so you need to get the ants out.
An effective treatment is Diatomaceous earth (DE) Powder. it’s non-toxic to kids, birds, and pets. And yet it effectively sorts out ants in your worm bin. As they move across the powder, it sticks to their feet and legs only to get into their joints and exoskeleton.
Buy DIATOMACEOUS EARTH here: https://www.wigglywigglers.co.uk/products/diatomaceous-earth
If you can find and remove the queen, the rest should follow her. Watering the wormery, to keep it damp, often encourages ants to evacuate the kit.
You can help keep ants out by smearing some Vaseline on the legs of the wormery.