You are range
-ing over $group
, which in this case is an array of strings:
$group = [ "$.Site.Data.product." , .Page.Title , ".Info" ]
Have a look at the index
function.
Please note that it is easier to help if you have your site code somewhere we can have a look at instead of trying to recreate it ourselves. Have a read about Requesting Help