Hi,
Just run into your message, but I suppose you found the answer by now:
Starting with Magento 2.4.0, the contact form can no longer call inside a CMS block or CMS page. All customization of the contact form should be done using layout xml or custom theme templates.