from typing import Dict
import re


def get_old_settings() -> Dict[str, str]:
    """Read config.ini to extract current settings.

    Returns:
        Dictionary of configuration options and their current values.
    """
    old_settings = {} # old settings and their corresponding values
    with open("config.ini", "r") as file:
        # Read each line to extract current settings:
        for line in file.readlines():
            # Ignore headers and comments:
            if line[0] == "[" or line[0] == ";":
                continue
            else:
                # Read current settings and their values:
                key, value = re.split("=", line, 1)
                old_settings[key] = value
    return old_settings