• Index error, but returning answer?

Question related to mission Between Markers

 

Hi All,

Is anyone able to explain why the below code is giving me the index error and in the similar challenge in the 'Initiation' Station the same is not giving the index error?

re.findall(f"(?<=\{start})(.*?)(?=\{end})", text)[0]

Thanks!