Hi,
Thank you for your message.
My reCaptcha version was already set to version 2, so this did not solve the issue. The other solution you gave I was unable to do because I am not an expert in WordPress.
However, when I manually updated to version 6 of WordPress, also an update of Contact Form 7 appeared. After having installed both these updates everything works fine now.
Thank you for your time and help!