According to @Florian's latest information about the used Boost.Regex, such a comment

should be valid, but I also get the same error for
(?#^(.+?) \[music\]; (.+?) \[lyrics\]$)
as you:

If I suppress the last closing brace this regular expression can be saved.
As I don't know what exactly you like to achieve with it, I can't test it.