I have a group for several messengers including Teams. If Teams is already running (as with other messengers as well) it will not be included, if the group is opened. So in order to be sure that Teams will be included, set Teams itself to not start at boot.
Of course it would be great, if running apps could be caught by a group when opening the group.