Macro not functioning

Alright so I have this execute run function three_lives:life_update with block ~ ~ ~ profile and it knows that it's targetting a block and that block has profile nbt, it returns "name" and in the function is this command say hi $(name) but it's saying it literally
Continue to help post