Alarming expression

I’m trying to write expression in tags alarming label to assign label from its tag path. Using following expression
try(split({displayPath},"/")[2,0],-1).

Same expression is working in normal text field container but in tag itself, it’s not working.

------Reason for expression.---------
I’m trying to give label a name (expression will be UDT) same as the parent folder that tag resides in.
for eg.
#tag path: Unit 1/Folder 1/Folder 2/Bit Status/Auto
So with above expression, label for tags alarm will be “Folder 2”.

As i’m using UDT, I want a single expression that will apply to all its child tags alarm.

Nevermind, it worked when I used {itemPath} instead of {displayPath}.