Regexp to exclude 2 or 3 passwords

Hi all,
i’m trying to configure a Password Policy on my 11.0.2 keycloak version.
I would like to use a “Regular Expression” to exclude only 2 or 3 passwords (instead of using a blacklist passwords file), is it possible ?
I’ve tried this expression : ((?!000|666).) to exclude “000” and “666” as passwords, but it doesn’t work.
Any idea please ?