In reply to Bastian.

I don't know of any tutorials offhand. But, here's a quick solution off the top of my head for the front end:

add_filter( 'render_block', function( $content, $block ) {

if ( ! empty( $block['attrs']['className'] ) && false !== strpos( $block['attrs']['className'], 'is-your-style' ) {
// enqueue scripts
}

return $content;
}, 10, 2 );

There may be a better hook than render_block. The best thing is to just dive into the core source code and test things out.