In testing, this also worked with heading and list blocks.
For more complicated blocks that don’t support shortcodes, it would be possible to add shortcode support by adding apply_shortcodes()
to the render_block filter.
Not tested, but if there’s other blocks that don’t support shortcodes, this should work to add shortcodes to all blocks:
<?php
add_filter(
'render_block',
function( $block_content, $block ) {
return apply_shortcodes( $block_content );
},
10,
2
);
See this comment for an example of how to restrict the above function to only some blocks.