Replaced assign_variables() with a simple regex to match stash variable pairs when setting lists