input: def create_people_dict(people: str) -> dict:
      """Converts a string of names and ages into a Python dictionary where names are keys and ages are values.
      >>> create_people_dict("John (20), Jane (40), Alex (18), Peter (45)")
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      >>> create_people_dict("Alice (30), Bob (25), Carol (35)")
      {'Alice': 30, 'Bob': 25, 'Carol': 35}
      """
      import re
      people_list = re.findall(r'\b(\w+)\s*\((\d+)\)', people)
      return {name: int(age) for name, age in people_list}
output:     import re
      people_list = re.findall(r'\b(\w+)\s*\((\d+)\)', people)
      return {name: int(age) for name, age in people_list}