You probably don’t have the full flathub repo but the Fedora curated version.
Try removing the flathub repo and adding it back with:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Alternatively, you could use the link on this page.