Go to Microsoft 365 Admin → Teams & Groups → Active teams & groups.
Open the group.
Select the Members tab.
Search for the people you want to remove.
Select them and click Remove.
Save your changes if prompted.