Run jobs only uses first 20 hosts

Problem:
When I select more than 20 hosts on the All Hosts page and choose action “Schedule Remote Job”, the job will only run on the first 20 hosts selected. On the “Target hosts and inputs” page it lists 20 hosts and shows “Apply to 20 hosts”.

If I switch to the legacy form I see the correct count and correct list of hosts. It will run on any number of hosts selected

Expected outcome:
Run a job on more than 20 hosts using the new form.

Foreman and Proxy versions:
foreman-3.9.1-1.el8.noarch
katello-4.11.1-1.el8.noarch
rubygem-foreman_remote_execution-12.0.5-1.fm3_9.el8.noarch
rubygem-hammer_cli_foreman_remote_execution-0.3.0-1.fm3_9.el8.noarch
rubygem-smart_proxy_remote_execution_ssh-0.10.4-1.fm3_9.el8.noarch

Distribution and version:
AlmaLinux 8.9

If you turn on the experimental All Hosts page, the select all functionality should work better there. I think this bug has been around quite some time.