TL;DR - update your Elixir version.
This is very likely an old Elixir version that was compiled on Erlang/OTP 19 but running on Erlang/OTP 20 which had changes to the regex implementation. Later we fixed those changes so we can cross compile regexes between OTP versions. So updating Elixir should fix it.