Yubikey is closed-source and people that care about privacy shouldn't use it. Instead i will provide two best open source security keys for you.
OnlyKey is an open source alternative to YubiKey. OnlyKey natively supports: a hardware password manager, multiple two-factor methods (FIDO2, TOTP, and Yubico® OTP), passwordless SSH login, and OpenPGP.
https://onlykey.io/
Solokey - The first open-source FIDO2 security key: Protect your online accounts against unauthorized access by using the most secure login method. Built with Trussed®.
https://solokeys.com/