Dedicated inspect implementation for regexes. Fix #2250

We no longer share the implementation with BitString because regex
literals have slightly different escaping rules
Merge pull request #2320 from alco/regex-literal

Draft implementation of custom inspect algorithm for regexes