The regex escaping/tokens should use double backslash when using string. Regex Type – Typst Documentation