It can happen with macos that your Rails project using the charlock_holmes gem throws an error like this:
/Users/iwan/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': dlopen(/Users/iwan/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/charlock_holmes-0.7.7/lib/charlock_holmes/charlock_holmes.bundle, 0x0009): Library not loaded: '/opt/homebrew/opt/icu4c/lib/libicudata.71.dylib' (LoadError)
Referenced from: '/Users/iwan/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/charlock_holmes-0.7.7/lib/charlock_holmes/charlock_holmes.bundle'
Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicudata.71.dylib' (no such file), '/usr/local/lib/libicudata.71.dylib' (no such file), '/usr/lib/libicudata.71.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/72.1/lib/libicudata.71.dylib' (no such file), '/usr/local/lib/libicudata.71.dylib' (no such file), '/usr/lib/libicudata.71.dylib' (no such file) - /Users/iwan/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/charlock_holmes-0.7.7/lib/charlock_holmes/charlock_holmes.bundle
from /Users/iwan/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /Users/iwan/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/charlock_holmes-0.7.7/lib/charlock_holmes.rb:1:in `<main>'
...