How can I create a dynamic membership group in Entra which would target all Team/Group owners?

I'd like to collect all members who own at least one team/group in a custom entra group. No idea which attribute I could use for targeting, any help would be highly appreciated!