have a yubikey with private keys on it and don't have the pubkey or the secret stubs?
regenerating the secret stubs when you have the pubkey is documented, but here's how to regenerate the pubs too:
https://www.nicksherlock.com/2021/08/recovering-lost-gpg-public-keys-from-your-yubikey/#more-1148