Invalid regex literal in REPL on Linux causes segfault

This error is a bit extreme:

  1> let rgx = #/(.)(?<!.*\1.*\1)/#PLEASE submit a bug report to and include the crash backtrace.
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):

💣 Program crashed: Bad pointer dereference at 0x0000000000000000

Thread 22 "" crashed:

0 0x00007faf274e1004

Segmentation fault

As soon as I hit enter it gave me this stack trace. I did hit enter after the second #, even though it doesn't render for some reason.

As per the directions in the backtrace, I filed, but I feel like I'll be more likely to get a response here. Has anyone else run into this yet? Is there a known workaround? I'd prefer that a small mistake like this doesn't completely kill my session.