I am unable to get the Image title tag to display a variable

Trying to add alt tag title to auto populate based on alt text. My delivered code is displaying title = “”.

alt=“{{product.title }}”
title=“{{product.title }}”

and

alt=“{{ product_card_product.featured_media.alt | escape }}”
title=“{{ image.alt | escape }}”

Is there anything wrong with this code? How can I add a meaningful display so title is different than alt text?