<!-- Thanks for submitting an issue! Quick check-list while reporting bugs: --> Pytest fails to output colorfully with the following log format string in `pytest.ini` ```ini log_cli_format: %(asctime)s %(funcNamewithModule)-40.40s L%(lineno)-.4d %(levelname)-5.5s| %(message)s ``` This is due to [`ColoredLevelFormatter.LEVELNAME_FMT_REGEX`](https://github.com/pytest-dev/pytest/blob/9653a0e9f47ad2ae5135a974db52ddeb5bfcf5d9/src/_pytest/logging.py#L62) fails to match the format string due to the presence of precision bit.