Cookiebot issue with aggregated js files

Cookiebot auto-blocking mode is not compatible with Drupals JS aggregation as soon as an aggregated file contains the word "cookie", even if it is for removing a cookie, the whole aggregated script is blocked and leads to JS errors like "jQuery is undefined".
We certainly can add addtional attributes to the library files and custom js files, but not for aggregated (in a simple way).
I found really dirty solution how to achieve this result.