Question: I have this error `sre_constants.error: unbalanced parenthesis at position 3` when I execute this code : 

```
a3 = "e)/ragues"
numbera3 = sum(1 for match in re.finditer(r"\b{}\b".format(a3), resp))

```

I thinks it's due to the regex and the ")" of a3 variable but I don't know how can I do to do to not have this error..

Thanks,

Answer: 
It seems {{ path(...) }} is not being evaluated by twig as @Omar Alves told.

try this, declare a variable in your **twig file**

```
<script>
    var url = '{{ path("material-stock_check") }}';
</script>

```

and then use it
Have you declare the path in route file