Deselecting ea-ruby27-mod_passenger in EasyApache 4 doesn't mark the package for removal.
ea-ruby27-mod_passenger is required by ea-nginx, so it cannot be removed without first removing ea-nginx. However, EasyApache doesn't provide any indication of this.
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-40613. Follow this article to receive an email notification when a solution is published in the product.
Remove ea-nginx, then remove ea-ruby27-mod_passenger.