Before you repot try to kill the bugs you have. Pour some soapy water through the media several times, a few days apart. Or you could soak the whole pot in water for an hour or two and hopefully they will jump ship.
And wash off the bare roots in soapy water in order to kill any lingering larvae.