Restrict Regex signatures from SubString to SubString{String} (#45281)
By itself, SubString is agnostic about the layout of its underlying string.
Julia's Regex library assumes a UTF-8 encoded, heap-allocated string type, a
criterion fulfilled by SubString{String}, but not SubString.