Yep, the raw HTML looks same as it does in my browser. There's a multiline comment in the head tag but the other six are just plain comments with one space inside generally. So it seems to be a bug somewhere in beautifulsoup for not parsing comments properly? (or are multiline comments in head not to spec?)
Either way this regex doesn't do the job

Where is the final HTML generated? Just in the epub you mean?