InnerBlocks with allowedBlocks not working with acf_register_block

A late reply but I thought I would include a snippet that worked for me.

Update $allowed_inner_blocks with your own “block_types” and place the following code inside the parent block template;

<?php $allowed_inner_blocks = ['acf/logos']; ?>
<InnerBlocks allowedBlocks="<?php echo esc_attr(wp_json_encode($allowed_inner_blocks)); ?>" />

error code: 523