We could provide the functionality of Paho's MqttTopic.isMatched so that library users can check if a message from a certain topic matches a given filter.
This can be handy if we subscribe to multiple topics and later need to distinguish between them.