Revert "Simplify and fix IsRegex detextion by looking for special chars used by regular expression syntax. Add unit test."

This reverts commit 1c14989539066fd82e950175be18c814c684056e.

Breaks acceptance test 10_files/09_insert_lines/303.cf, among others.