PathPrefix with regex in IngressRoute

I want to add IngressRoute which can handle following Host /Path

    - kind: Rule
      match: Host(``) && PathPrefix(`/api/v1/user/<id>/verify/?code=<verification code>`)

Here id & verification code is numeric. Do I need to use middleware for RegEx ?

This doc suggest I can use something

PathPrefix(`/products/`, `/articles/{cat:[a-z]+}/{id:[0-9]+}`)

Need some example if someone can provide