intent: Python Regex Get String Between Two Substrings
rewritten_intent: get a string `randomkey123xyz987` between two substrings in a string `api('randomkey123xyz987', 'key', 'text')` using regex
snippet: re.findall("api\\('(.*?)'", "api('randomkey123xyz987', 'key', 'text')")