def regex_to_remove(platform_name: str):
    """
    Get the regular expression for files and sub-folders to remove.

    :param platform_name: Name of the platform.
    :return: Regular expression for files and sub-folders to remove.
    """
    regex_map = {
        'windows':
            '^(?:.*_|.*\\\\)?(?:ios|mac|android|linux|fuchsia|non|x86|test|testing|vcpkg|BUILD_INFO|CONTROL)(?:_.*)?(?:\\.h)?$'
    }
    return regex_map.get(platform_name, '.*')