If this is a nested repeater/flex situation, you cannot get fields from the parent repeater/flex field. You have to get these values before the nested loop of you want to use them in the nested loop. Let me know if you understand that or you need an example.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users