Azure Active Directory (Azure AD) B2B direct connect is a feature of External Identities that lets you set up a mutual trust relationship with another Azure AD organization for seamless collaboration. This feature currently works with Microsoft Teams shared channels. With B2B direct connect, users from both organizations can work together using their home credentials and a shared channel in Teams, without having to be added to each other’s organizations as guests. Use B2B direct connect to share resources with external Azure AD organizations. Or use it to share resources across multiple Azure AD tenants within your own organization.
Currently, B2B direct connect capabilities work with Teams shared channels.
Reference article: https://learn.microsoft.com/en-us/azure/active-directory/external-identities/b2b-direct-connect-overview
To answer your question, it is possible to look up another azure AD tenant users by teams.
You can refer article https://learn.microsoft.com/en-us/microsoftteams/communicate-with-users-from-other-organizations to achieve this.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.