Hi @chandramohans27,
You can use velocity script into subject as you do in the template body.
But i confirm with Sailpoint that maximal length is 250 characters.
You can see my post here : Email template condition and subejct max length - Identity Security Cloud (ISC) / ISC Discussion and Questions - SailPoint Developer Community
in this post i have an example that work.