Hello @Deni Garo
Thank you for reaching out to QnA. I would like to confirm that currently in Azure AD Dynamic Groups we do not support Groups based on license assigned. We only support membership rule creation using assigned plans attribute.
You can get more information about this on following document: https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership#example-1
I hope this helps and resolves your concern.
----------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.