Some scholars have considered any games in which dice are involved to be from games of chance that are not permitted. Those scholars based their opinion on the general saying of our Prophet prohibiting playing with dice.
Other scholars distinguish that games that are based on skill, and there’s no element of gambling involved in them are generally considered permissible games. They claim that games with dice involved are only impermissible when there’s a meaning of gambling in them, or when money gets involved and someone is betting on pure chance/luck.
In conclusion, dice are not inherently impermissible. But they’re impermissible when there’s a meaning of gambling in them.