How common is the issue in the 2019 Holden Commodore ZB where the gear selector is in Park but a warning notice comes up “shift to park”? Until the light goes out, I can’t lock car or turn off the lights etc.
We have seen this problem before in at least one other ZB Commodore, so you’re definitely not on your own. The problem is very possibly caused by a misalignment of the micro-switch that detects the car is, indeed, in Park, and allows it to be powered down. If the computer can’t see the correct signal from this micro-switch or sensor, it assumes the car is not ready to be locked and left.
Given that yours is not the only example of this, perhaps your auto electrician has seen this before and will know what the fix is. Even if they’re not familiar with the problem, a good auto sparky should be able to sort this. If not, a transmission specialist would be your next port of call.