It's questionable whether we'd be able to regain it at all.
If every machine on earth was powedered and spirited away into space not only would we lose the technology, we'd lose the materials. We've already used most of the most easily accessible ore deposits and the most easily accessible fuel deposits and you can't get to the deep stuff without equipment and you can't make the equipment without ore/metal/material.
Every single bit of knowledge stored only on computer would be gone.
Society would collapse into a terrible famine as all the farming infrastructure would be totally gone. For a long time people would just be trying to survive. It's hard to maintain libraries when the librarians are starving to death.
Knowledge of how to build tractors isn't a great survival skill in a world where there's almost no metal to build them with nor fuel to run them and there's going to be a lot of cannibalism.
It's hard to even have an iron age when the easiest surface iron deposits are already gone and without that there's little hope of climbing higher since you need to be able to free up enough people to have a scholar class and that may never happen. Without that society can remain totally static without notable scientific discovery.
There's even a danger that even if society did start to climb again, that people would develop a worldview where useful knowledge can only come from some golden age in the past which could further cripple any attempt to reestablish a scientific community.