FIX 12661: [REG2.066a] std.regex with -debug causes linker errors

https://issues.dlang.org/show_bug.cgi?id=12661

I have no idea what is the actual cause of regression.
This pull is a minimum workaround to remove the inference mismatch from std.range.SortedRange.