i’ve found my problem in a different post( Search using regex ), the user have solved with a workaround:
As can be read this solution is “unsafe”, the correct sintax for regex is put the expression between // so for the machine account name (that ending with $) this is fine /.*\$/