Fix issue 11182 - dmd crashes on compiling regex