Fix regex compilation error when using a dot preceding :var in url pattern