Yes there's nothing specifically in the Constitution that requires the speaker to be a House member. However its a tradition that hasn't been broken and probably shouldn't be. Just like 9 USSC justices is a tradition that shouldn't be broken!
There is no way the Republicans pick up 17 seats in 2022 so your scenarion has zero chance of success.