CSS, cant find the right pseudo element

I am trying to add a value to the contents of a page tab in a form. I need to insert the pseudo element name before the ::after statement.

As you see in the output, the value “XYZ” is added EVERYWHERE without the proper element name.
I tried a few but can’t get the right one.
Can someone offer assistance?

Intenta

content: "(<?php echo $np; ?>)";

Thanks Jheyman, but this still gives me the following, the XYZ is everywhere

Solved:
#id_StyleViewNewY_form1::after {
content: “(<?php echo $np; ?>)”;
}