Lua pattern matching

I’m trying to use the grpc_gateway to get my REST endpoints working. What is the best pattern matching I should be using in the description file for kong if I wish to match GUIDs?

For example:

  - name: test.api
    paths:
    - ~/test/api/get/(\b(uuid:){0,1}\s*([a-f0-9\\-]*){1})
    regex_priority: 1
    plugins:
    - config:
        proto: /usr/include/myapis/testapi.proto
      enabled: true
      name: grpc_gateway

I found this example, but doesn’t seem to be able to match all guid variants.

Thanks.