I didn’t realize the bar code region is already semantically defined. That means all Apple has to do is to support an HDR region in software, since the hardware already supports what you describe.
From another comment in this thread, you can see a proof of concept using the HDR video workaround that works on any recent iPhone (or MacBook Pro): https://dt.in.th/HDRQRCode