    def _get_reminder_duration_and_time_interval(cls, voice_transcript):
        """
        Extracts the duration and the time interval from the voice transcript.

        NOTE: If there are multiple time intervals, it will extract the first one.
        """
        for time_interval in time_intervals.values():
            for variation in time_interval['variations']:
                if variation in voice_transcript:
                    # Change '[0-9]'to '([0-9])' and now the skill is working
                    reg_ex = re.search('([0-9])', voice_transcript)
                    duration = reg_ex.group(1)
                    return duration, time_interval['scheduler_interval']
Extracts the duration and the time interval from the voice transcript.

NOTE: If there are multiple time intervals, it will extract the first one.
src/jarvis/jarvis/skills/collection/reminder.py