Small update – regarding my second question about getting the script handler (that is registred by block.json) so I can use the wp_localize_script to localize the script, I just openend the HTML source code and manually got the script handler. It is a workaround but it is working. Let me know you have a better approach.