Fix regexp escape rule