For people having the same issue I found the solution.
I tested the functionality in other launchers such as: Poco Launcher, Nova Launcher, Smart Launcher, and it was working.
I tested it again with MIUI Launcher, several times, cleaning data, changing versions but nothing worked.
The issue is...