Match R string values to chartjs objects within template literals. https://www.chartjs.org/docs/latest/configuration/tooltip.html#tooltip-item-context

convert_template_literals(string)

Arguments

string

a string, with or without template literals