You can put a substring in double quotes to force it to be interpreted as literal text even if it contains pattern key words.
"In'""Hello Year``YYYY', the YYYY will be replaced by the year data, but the single Y in Year will not be."