Changing between multiple Teams Free accounts within the app or browser
Teams itself is free, unless there's a certain feature you want to use.
Can you tell me what Microsoft 365 you have? Is it Microsoft 365 Personal, for example?
If so, it should already link to your Microsoft account. In Teams, as long as you sign into the same Microsoft account, any feature that is associated with the subscription should be automatically available.