$attributes not defined in block.json PHP template for ACF blocks

It turns out ACF blocks provide the attributes in the $block variable available in the PHP file mentioned in renderTemplate property of block.json. So, in my case it was available as $block['title'].