I have been recording a number of meetings successfully over the past couple of weeks in Teams.
In a meeting yesterday, two different participants were screen sharing, but the recording only shows the display from the first. It is very likely that the first sharing participant had the desktop app, while the second was using the web browser.

I organized and recorded the meeting and am currently running:
Microsoft Teams Version (64-bit). It was last updated on 9/27/2021.