Ok, you would need to use the render_block filter to change the links HTML.
1. Add this PHP Snippet:
add_filter( 'render_block', function( $block_content, $block ) {
if (
!is_admin()
&& ! empty( $block['attrs']['className'] )
&& 'add-lity-class' === $block['attrs']['className']
){
$block_content = str_replace( '<a ', '<a class="data-lity" ' , $block_content );
}
return $block_content;
}, 10, 2 );
2. Select the block and give it a class of: add-lity-class