Hmm... weird. I thought I updated the regex handling vars for 0.5.19a. Let's see... The non-Godot (for online regex testing) should be:(var.*=\s)(([\{\[]([^\{\}]*[\r\n]*)*[\}\]])|([^\{\}\[\]\s]*))
Does that above expression do what you want? The double-escaped version should be what is in the modpanel.gd file as that's what I have in my working copy?
What you have doesn't look right as it still has the '?', which allows for cases like var test = {...}[random other stuff] to work.
Edit01 : Oh, maybe your v19a was before I submitted changes, but the updated version is still v19a.
Edit02: Oh pastebin. Ya that works too. =D