Looking at the original Hebrew transcript, it is clear that it is meant that a man shall not sleep with another man in his marriage bed. Nothing strictly said about homosexuality.
https://www.katholisch.de/artikel/30319-exegetin-bei-levitikus-geht-es-nicht-um-sex-zwischen-maennern
A Catholic site.