Problem with special characters in regex

This is my problem

When I try to search for a word with special characters, in this case an accent mark, the regular expression breaks in JavaScript

I have read that this is because n8n uses GitHub - riot/tmpl: Riot template engine but I have not found the formula to escape special characters