fix(repl): skip regex literals when validating input (#36375)