I've used Salifert Flatworm Exit before when I came back from a trip to find a whole army of these little guys infesting my nano a few years ago. I'd seen one or two of them before I left.
Works instantly...within minutes of addition they start floating around dead. It really is amazing to see instant results from the addition of a magic potion.
Only thing is that you need to be prepared to do a large water change a few minutes after addition, as well as adding a ton of carbon. This is to remove the toxins they will release (if there are a lot of them) when they die. For just a few it is likely less of an issue, but I'd still run some carbon and try to vacuum out the dead ones, but these guys can be where you can't see them.