Not how to insert a newline before a line. This is asking how to insert a newline before a pattern within a line.
For example,
sed 's/regexp/&\n/g'
will insert a newline behind the regexp pattern.
How can I do the same but in front of the pattern?
Here is an example input file
somevariable (012)345-6789
Should become
somevariable
(012)345-6789