I didn’t know this was posted successfully, thanks Jasper for your input. I have got it to work shortly after I’ve posted this.
Also appreciate you mentioning that the function to register blocks has changed name as I am still using v5.8.0-RC2
and was not aware this was the case.
Thank you for your help once again, I need to better understand how scope works in php
.