title: (have 'x86_64', need 'arm64e') Error trying to run a ruby script on RubyMine
body: <p>I'm getting this error when trying to execute a very simple ruby script, i've tried reinstalling Ruby and have all the dependencies installed. I've reinstalled all the gems, not sure if this is brew issue, ruby or a silicon issue.</p>
  <p><code>&lt;internal:/opt/homebrew/Cellar/ruby/3.1.2_1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb&gt;:85:in `require': dlopen(/opt/homebrew/lib/ruby/gems/3.1.0/gems/strscan-3.0.4/lib/strscan.bundle, 0x0009): tried: '/opt/homebrew/lib/ruby/gems/3.1.0/gems/strscan-3.0.4/lib/strscan.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/strscan.bundle' (no such file), '/usr/lib/strscan.bundle' (no such file) - /opt/homebrew/lib/ruby/gems/3.1.0/gems/strscan-3.0.4/lib/strscan.bundle (LoadError)</code></p>