I followed this tutorial to add a captcha to my form.
First I install it using
composer require captcha-com/symfony-captcha-bundle:"4.*" <
composer require captcha-com/symfony-captcha-bundle:"4.*"