You can get the field keys by editing the field group and checking the box for them under screen options. I actually tried this a dev site and it works for me. I can’t tell what’s causing the issue on your end.
What code did you use?
What is the field key of your repeater?
If you’re trying the second code, what is the field key of the sub field you’re checking?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users