They could be the same worms/larvae.
Probably just spot-checking and making sure you get any poo and uneaten food will reduce the stuff the invaders have to munch on. And they'll probably reduce in population slowly. You could speed things along by cleaning the tank (keeping your axolotl in a tub of tank water while you do it, of course!) - taking the sand out, swilling it around in a bucket of tank water so as not to hammer your good bacteria too much. Then physically scrubbing the driftwood to get the worm casings and worms off.
When I did this, I didn't get all of them (hence why my fish finished the remainders off as a snack!) but I dented their numbers. And it made me feel a bit better.
I was cycling my tank at the time, so I took the invaders as a sign that my water quality was getting there, since things could inhabit it!
Is any part of your tank open to the air, because the midges/flies could have come and laid their eggs in it, and they could have got in that way, rather than coming in on anything you introduced. It's hard to know for sure, of course.