Mask Password on input

Hello,
I’m trying to mask a password entered during a dialog. I tried setting the PII settings for the password but when enabled not the BOT doesn’t understand any intents. Is there another way to mask a password?

The PII settings are based on the regular expression defined at the created information type. If you have created a new info type by defining a regex at PII settings of the bot, then any input which is provided to the chatbot if matches the regex will be redacted.