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 https://github.com/llvm/llvm-project/issues/ 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):
/home/bbrk24/swift/swift-5.9-RELEASE-ubuntu22.04/usr/bin/lldb(+0x22923)[0x564ff284c923]
/home/bbrk24/swift/swift-5.9-RELEASE-ubuntu22.04/usr/bin/lldb(+0x20cbe)[0x564ff284acbe]
/home/bbrk24/swift/swift-5.9-RELEASE-ubuntu22.04/usr/bin/lldb(+0x22f5a)[0x564ff284cf5a]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7faf277a0520]
/home/bbrk24/swift/swift-5.9-RELEASE-ubuntu22.04/usr/bin/../lib/../lib/swift/linux/libswiftCore.so(+0x3ef004)[0x7faf274e1004]
/home/bbrk24/swift/swift-5.9-RELEASE-ubuntu22.04/usr/bin/../lib/../lib/swift/linux/libswiftCore.so(+0x416e96)[0x7faf27508e96]
/home/bbrk24/swift/swift-5.9-RELEASE-ubuntu22.04/usr/bin/../lib/../lib/swift/linux/libswiftCore.so(swift_getWitnessTable+0x1393)[0x7faf275006b3]
/home/bbrk24/swift/swift-5.9-RELEASE-ubuntu22.04/usr/bin/../lib/liblldb.so.13git(+0x19aa84a)[0x7faf296b984a]

💣 Program crashed: Bad pointer dereference at 0x0000000000000000

Thread 22 "gger.io-handler" 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 https://github.com/llvm/llvm-project/issues/83167, 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.