Control characters are special, invisible characters in the ASCII range 0-31. These characters are rarely used in JavaScript strings, so a regular expression containing these characters is most likely a mistake.
const pattern1 = /\x1f/;
const pattern2 = new RegExp("\x1f");
const pattern1 = /\x20/;
const pattern2 = new RegExp("\x20");