As your expression is written you require a string matching your TRUEAGENT pattern to directly follow the referred, which isn't the case with the actual strings you want to match against. You need something like this:
... %{QS:referrer} .*\[%{TRUEAGENT:trueagent}\]\"