This is a question for the editor you’re using and not ACF. I do not know how to include a template file with that editor.
In most cases with these editors you need to use a shortcode to do something like this. https://developer.wordpress.org/reference/functions/add_shortcode/
The shortcode would run the php code that you posted.
Unless there is something in the editor you are using that lets you add php code in the editor.