wp_register_block_types_from_metadata_collection is the recommended method to register a block in latest WordPress releases and the one set in create-block tool by default
The examples in this repo need to be updated to use this new way of registering blocks.