Scrape colored line content from Dotty/Zinc rendered output. Looks for lines matching the pattern <linenum> |<code> and extracts the code part.
<linenum> |<code>
A fallback value if no matching line is found
The lines from the rendered error output
The scraped line content or the fallback