It’s not. folders don’t actually exist in google drive. files are shared individually. there’s a very complex interaction between imaginary folder ACLs and file ACLs. if you depend on the folders as being hierarchical (which they aren’t), this will bite you through unexpected leftover sharing.
The exceptionally stupidly names Shared drives (used to be called Team Drives) fix this.
Otherwise, ‘gam’ is the best tool out there for managing this.
Some of the paid tools are like VPNs. you end up giving full access to the tool developer. be very careful if you go with a paid tool vs ‘gam’.