Recaptcha in modular form

Hi
I have a modular form which works perfectly well apart from the captcha.
In my form I have the field:

-
  name: g-recaptcha-response
  label: Captcha
  type: captcha
  recaptcha_site_key: '{{ config.plugins.form.recaptcha.site_key }}'
  recaptcha_not_validated: 'Captcha not valid!'
  validate:
    required: true

And in the process I have:

- captcha:
    recatpcha_secret: '{{ config.plugins.form.recaptcha.secret_key }}'

I have set the page to process Twig and the form and captcha display correctly. The problem that I have is that when I submit the form and fill in the captcha it does not validate. I still get a message stating “Error validating the Captcha”.

If i replace the {{ config.plugins.form.recaptcha.secret_key }} with my actual key then the captcha works but it would be great to be able to access the key that I have already added to the form plugin config. Is this possible?

If you don’t populate these recapatcha values in your form, it should pull the values automatically from your plugin configuration.