The alert name is the fixed identifier of the alert, e.g. "SSLCertExpiringSoon". It is not dynamic.
What problem are you trying to solve? There may be a different way to solve it, e.g. using templating in alertmanager at the time the alert is delivered.