Hi @Daniele Zacchi,
Thanks very much for reporting this issue. We are able to reproduce it as well and have opened a ticket to investigate a fix for a future version of After Effects. It also appears to affect older versions—the same behavior is present in 22.6.
Thanks again for reporting this issue,
- John, After Effects Engineering Team