Azure AD Connect does not support synchronizing Primary Group memberships to Azure AD. You may need to change the Primary Group.
Azure AD Connect does not support synchronizing Dynamic Distribution Group memberships to Azure AD.
Nested groups also aren't supported.
https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/exclude-user-primary-group