---
cases:
  - data: {}
    modules:
      - |
        package generated

        p {
          re_match("^[a-z]+\\[[0-9]+\\]$", "foo[1]")
        }
    note: regexmatch/re_match
    query: data.generated.p = x
    want_result:
      - x: true
