Custom drawing property

in SW2022 sp5.0

Is there any way to create a "custom drawing property" that truncates sw filename and add DOC1 to evaluated name?

something like this? 

I tried the equation below, not the correct syntax ?

thanks

Rich