Proxy Client w/ Command Substitution and redacted variables

Is it possible to to use command substitution and redacted variables with a proxy client? I’m trying to the following but it doesn’t seem to work. The problem is we do not want the SNMP community exposed in Uchiwa

  "checks": {
    "check_snmp_hq_mail_relay": {
      "source": "hq_mail_relay",
      "command": "/opt/sensu/embedded/bin/check-snmp.rb -h -C :::snmp_community:::",
      "interval": 30,
      "standalone": true,
      "handlers": [ "microsoft-teams" ],
      "enable_deprecated_filtering": false,
      "snmp_community": "my_snmp_comm",
      "redact": [