WTH - why can't we exclude in recorder by platform

This was asked a long time ago but is still actual.

Currently, we can include/exclude domains and entities in the recorder.
I’d like to be able to exclude by the platform.
For example, I have 40 switches, but I want to exclude all that are using rpi_gpio platform.
Right now I must add all entities to exclude list.

As @petro mentioned here there is no way to know to which platform a specific entity belongs.

Take a look at https://github.com/home-assistant/core/blob/e13f78dfc5f79c23759a070de76f4aff8388845a/homeassistant/helpers/entityfilter.py#L44
Right now we can get entity and domain using split_entity_id (https://github.com/home-assistant/core/blob/2a1fe9d29a8764c612f89a4e808d2db6b0603e12/homeassistant/core.py#L119)
but knowing entity_id and domain we cannot get the platform.