Remove Text within Header tags in the Excerpt

Rather than messing with regex, you might consider using a user-defined excerpt (i.e. a manual excerpt, which retains HTML tags, rather than relying solely on the automatic excerpt, which strips HTML tags.

Depending on your specific use case, using the manual excerpt for displaying HTML-formatted excerpts is usually an easier approach.