I was able to accomplish this by replacing .
with \b[^>]
so that my final expression becomes:
(?ims)(?<=<myGoodSection\b[^>]*?)/>
That will only match the closing />
as long as the prefix does not contain >
anywhere, which will then exclude all of the tags following the first match.