Cannot invoke remote function Regex.match?/2 inside guard

You might want to read this.

https://hexdocs.pm/elixir/guards.html