That's not really a native router. URLPattern is a web standard and it's supported on Cloudflare (unlike node.js which Deno competes). So, you can probably run the router they built in that article inside of a Worker or Durable Object... or Functions if you use advanced mode.