Many services that use YubiKeys provide users with a backup code, typically in the form of a hexadecimal string, that can be used to regain access to their accounts in case the physical YubiKey is lost or destroyed.
This backup code works similarly to a Bitcoin seed phrase.