Thanks, I've made a couple of adjustments and opened https://gitlab.winehq.org/wine/wine/-/merge_requests/6240 instead.
The mapping looks completely straightforward, regardless of the keyboard layout, and I changed it to simplify the changes. This is the case at least for standard keyboard types. We have supposedly some support of JP106 keyboard types but I don't think this is working enough to worry about it.