What the message means
Legendary and Mythical Pokémon sent from Pokémon GO through Pokémon HOME can only be withdrawn into a core series game if that species is registered in its Pokédex or has been obtained at least once in that save file.
Why Celebi is tricky
Celebi, like Mew, has no regular Pokédex entry in Sword and Shield, so it cannot be registered the normal way. Having owned one in that save, for example by trading for one, satisfies the check. You need to obtain one in that save first.
Pokémon HOME and GO transfer rules can change, so check the current status in the official help pages.