Checkbox not rendering in template

Search Terms (Google): drupal render checkboxes in template ‘Radios and checkboxes not rendered correctly when nested inside other render arrays’ https://www.drupal.org/project/drupal/issues/3246825