_winreg was renamed to winreg in 3.0, and we require >= 3.8. https://docs.python.org/3/whatsnew/3.0.html#library-changes