Updated autocomplete with a regex to better match and complete variables that already have closing brackets or are part of assignment operators.