How to semantically add heading to a list
As Felipe Alsacreations has already said, the first option is fine. If you want to ensure that nothing below the list is interpreted as belonging to the heading, that’s exactly what the HTML5 sectioning content elements are for. So, for instance you could do