https://shopify.dev/apps/subscriptions/app-extensions/getting-started
The docs state you can provide shopify extension serve with a reference URL. This URL is incorrect.
shopify extension serve --resourceUrl="/product/12345"
This leads to a 404. Instead it should be:
shopify extension serve --resourceUrl="/products/12345"