It is actually not possible to add federated users (account from another instance) when adding members to a Team in the Contacts app.
While the search of users is not doable without a lookup server, format username@address should be catch the same way we create an external shares in the Files app