from typing import Optional
import re


def keys_and_input_text(obj: dict) -> Optional[bool]:
    """Filter input text and IDs on left side of page

    :param obj: pdf character
    :return: Whether to keep the filtered character
    """

    if "fontname" in obj.keys():
        if obj["x0"] < 50:
            matches = re.match(r"[0-9.]", obj["text"])
            if matches:
                return True
        if 9.1 > obj["size"] > 8.5:
            return bool(obj["fontname"] != "ArialMT")
    return False