Wayland screen sharing works fine (in Chrome, Webex...). It doesn't work in Teams, but that's Microsoft's issue, since they didn't bother with implementing it.
The linux team client seems to be completely unmaintained and might be thrown away soon. If you need to use teams, use it in a browser.