Zooming in on the star formation region Messier 17