Grok Debugger - hard to find identification string for my difficult example

mutate { gsub => [ "message", ",Type=2}\]}$", "" ]}

should work. You were anchoring the pattern to ^.