since it hasn't been posted here. Had the same issue with old Teams installations in old userprofiles, triggering defender vulnerabilities. First i made an Intune policy, that removes old Profiles older than X amount of days. Furthermore MS just published an Article with uninstallation scripts for exaclty that topic: https://learn.microsoft.com/en-us/microsoftteams/teams-client-uninstall-script
Just deployed it, one machine already processed successfully. Lets see what Defender says when it updates.