Your regex will allow for multiple words as the search query, while the actual code only uses the first word. Edit: To clarify, it also puts all the words into the sockmark.
Your regex should probably instead be:
/^@acro\s(\S+)$/iS
Or perhaps simply remove spaces from $regml(1) when you create the sockmark.