@Pathler have a look here:
the . will exclude the \n linebreak. That’s why we used the \s\S pattern in an ungreedy manner