pub fn transform_variant_groups(str: String) -> String
based on https://github.com/unocss/unocss/blob/main/packages/core/src/utils/variantGroup.ts