I'm using symfony 4 and recaptcha bundle from https://packagist.org/packages/excelwebzone/recaptcha-bundle#v1.5.11, but i don't know why it doesn't work. Below is the error i got. I configured env google recaptcha variables.
The file "C:\xampp\htdocs\projects\symfony-template\config/packages/ewz_recaptcha.yaml" does not contain valid YAML in C:\xampp\htdocs\projects\symfony-template\config/packages/ewz_recaptcha.yaml (which is loaded in resource "C:\xampp\htdocs\projects\symfony-template\config/packages/ewz_recaptcha.yaml").
yaml file:
ewz_recaptcha:
public_key: HIDDEN
private_key: HIDDEN
# Not needed as "%kernel.default_locale%" is the default value for the locale key
locale_key: %kernel.default_locale%
HIDDEN equals keys from google, but i covered it here for security reasons.