Looks like the Gtk4 stuff for mnemonics (“use-underline”) fails to work on the “_0” string; other numbers are working as expected. The same code works correctly in Gtk3.
If this is important, the UI is loaded from a GtkTemplate, and it is on a GtkToggleButton.