Currently, message listener functions are called with a Message object and the named regex groups as keyword arguments. It would be nice to allow type hints so that these named groups can automatically be cast/parsed into the right type.
FastAPI could provide nice inspiration for how to do this parsing.