I'm asking for the community's help again because I think there is a bug in drupal core with the form #state API.
Specifically, checkboxes and lists are not activated as required by form #state.
In the case of checkboxes, the requirement asterisk is not added, but required="required" and aria-required="true" attribute are added, but the checkboxes do not become required.
The same is with the lists except that the asterisk is added, but it is not required either.
I have a list, which I use with the checkbox/radio widget, which is the master.