Fix issue 10913 std.regex API regression

No idea why I can't package __traits(compiles, ...) in a trait-like template. I must be missing something ...