This way custom shortcuts like "Switch Keyboard layout to X" also workchanges the whitelist to be a `QRegularExpression` to allow for more sophisticated whitelisting.
A expression matching "Switch keyboard layout to .*" has been added.
BUG: 378531
FIXED-IN: 5.1012.0