Use RegExp for button plugin's focus shim

Fixes #14923.