Where the Teams data are scanned depends on if its at Teams chat or a Teams channel
Text written in the Teams Channels is scanned by the toolbox.
Attachments in the Team Channels are stored in SharePointOnline and can be scanned by the toolbox SharePointOnline Scanner
Attachments in Team Chats are stored in OneDrive and can be scanned by the toolbox OneDrive scanner
Text in Team Chats cannot be scanned by the toolbox