The https://github.com/google/pyu2f README states:
Support for pyu2f library is discontinued, because U2F is an outdated FIDO spec. In favor of embracing FIDO2 and more secure protocols, Yubico/python-fido2 is recommended, which also has backward compatible support for U2F.
Already noted in #1870, too…
Right now, using macOS Tahoe (and the previous version, too), I regularly see
ModuleNotFoundError: No module named 'range'
Editing google-cloud-sdk/platform/gsutil/third_party/pyu2f/pyu2f/hid/macos.py to remove the line import range makes it work, which is expected – range is a Python builtin. Anyway, fixing that is not an option, given the discontnued state…
So, please follow the advice of using Yubico/python-fido2 instead.