Chane the "main" snippet so the first curly brace is on the same line as the "main" text.
Add the "regex" include shortcut.