Same-sex marriage is being added to Crusader Kings 3 in its next update.
While the base game allows players to express same-sex attraction, it’s not possible to formalise this in marriage.
Source: https://www.eurogamer.net/articles/2022-01-27-same-sex-marriage-coming-to-crusader-kings-3