Filtering out event_data.TargetUserName ending in $

I would like to invert this, to say not contains $

{
"query": {
"regexp": {
"event_data.TargetUserName": "[a-zA-Z0-9-_]{1,32}"
}
}
}