Foreman 3.5.1. - Possible regression - foreman_plugin_expire_hosts

Problem:

When installing plugin foreman_plugin_expire_hosts, and subsequently editing a host, the UI throws an error:

Oops, we’re sorry but something went wrong undefined method `datepicker_f’ for #ActionView::Base:0x000000000474a0 Did you mean? datetime_f

Expected outcome:

UI displays host edit page

Foreman and Proxy versions:

Foreman: 3.5.1
Foreman Proxy: 3.5.1

Foreman and Proxy plugin versions:

foreman_expire_hosts: 8.0.0

foreman-tasks: 7.1.0
foreman_bootdisk: 21.0.2
foreman_dhcp_browser: 0.0.8
foreman_discovery: 22.0.2
foreman_monitoring: 3.0.0
foreman_openscap: 5.2.2
foreman_puppet: 5.0.0
foreman_remote_execution: 8.1.2
foreman_setup: 8.0.1
foreman_statistics: 2.0.1

Distribution and version:

RHEL 8.7

Other relevant data:

Fresh Foreman installation without foreman_plugin_expire_hosts results in working installation.
Installing Foreman with foreman_plugin_expire_hosts and then removing foreman_plugin_expire_hosts still results in error:

Oops, we’re sorry but something went wrong undefined method `datepicker_f’ for #ActionView::Base:0x0000000004d508 Did you mean? datetime_f