Escape keyword regex and add test for the escaping