Connect to Azure AD
Connect-AzureAD
display a list of all soft-deleted Microsoft 365 groups that are still within the 30-day retention period
Get-AzureADMSDeletedGroup
Find the group to restore and copy the Id
Run the following to restore the group
Restore-AzureADMSDeletedDirectoryObject -Id [Id]
verify if the group was successfully restored. It can take up to 24 hours for the restore process to complete, after which the team and content associated with the team, including tabs and channels, is displayed in Teams.
Get-AzureADGroup -ObjectId [Id]
More information : Archive or delete a team in Microsoft Teams – Microsoft Teams | Microsoft Learn