Error Regex upgrade to kong 3.1.0

After the migration to kong 3.1.0 from 2.8.1 and updated all the path with the ‘~’ I have this runtime error:

error: unrecognized escape sequence, context: init_worker_by_lua*
2023/01/02 20:32:11 [error] 10118#0: *10086 [lua] atc.lua:190: new_from_scratch(): could not add route: 8158c995-8ac5-58e6-a97c-35436c06dfa2, err:  --> 1:155
  |
1 | (http.method == "DELETE" || http.method == "GET" || http.method == "PATCH") && (http.host == "api.fftech.info" || http.host == "api.fftech-int.info") && (http.path ~ "^/(?i)v1/language/contextAttributes/([^\\/]+)/?$" || http.path ~ "^/(?i)v1/language/projects/([^\\/]+)/?$" || http.path ~ "^/(?i)v1/language/projects/([^\\/]+)/subProjects/([^\\/]+)/?$")
  |                                                                                                                                                           ^------------------------------------------------------------^
  |
  = regex parse error:
    ^/(?i)v1/language/contextAttributes/([^\/]+)/?$

my original regex is

“^/(?i)v1/language/contextAttributes/([^/]+)/?$”
but on the parser I saw that:
“^/(?i)v1/language/contextAttributes/([^\/]+)/?$” – an extra “/”

Any idea?

The container is up and running but all requests are pending without an answer.