you want to give permission to a members or owners group from a private Teams, right?
It works fine.
I have a SharePoint Team Site (not Groups connected) and a private Teams. I have added the members groups from the private teams (it's technicaly a M365 AAD group) to the SharePoint visitors group on the SharePoint site. After that, the members from the private Teams have access to the site - done.