@unboxed
type interpolation =
| S(string)
| R(RegExp.t)
@module("regex") @taggedTemplate
external regex: (array<string>, array<interpolation>) => RegExp.t = "regex"
Console.log(regex`"`) // This compiles to "console.log(regex`\"`)" which causes "Invalid regular expression: invalid escaped character for Unicode pattern: /\"/v"