I wrote to regextester.conf next settings
server {
    listen 9000;
    location / {
        return 200 "Match not found\n";
    }
    location ~ "^/([a-zA-Z]{2})/hq/" {
        return 200 "Match found  Capture Group 1: $1\n";
    }
}
after deploy I get nginx error and into docker container I see that my srttings was changed to
server {
    listen 9000;
    location / {
        return 200 "Match not found\n";
    }
    location ~* ^/([a-zA-Z]{2})/hq/ {
        return 200 "Match found  Capture Group 1: $1\n";
    }
}
OK, I returnet config into conteiner againe, then do nginx -s reload and again get wrong config with
 location ~* ^/([a-zA-Z]{2})/hq/
Why?