Regex to match any character being repeated more than 10 times

#include <stdio.h>
#include <stdlib.h>
#include <regex.h>

int main() {
    char pattern[] = "\\(\\(.\\)\\1\\{9,\\}\\)";
    char text[] = "your_input_string_here";

    regex_t regex;
    regcomp(&regex, pattern, REG_EXTENDED);

    if (regexec(&regex, text, 0, NULL, 0) == 0) {
        printf("Match found.\n");
    } else {
        printf("No match found.\n");
    }

    regfree(&regex);
    return 0;
}