MacOS bundle install exits with code 127

Hello, I have followed the orb documentation for Flutter and I am running into numerous issues. Regardless of how I set the ruby version and gem install bundle. I always receive an exit code 127 at flutter/install_ios_gem

version: '2.1'
orbs:
  macos: circleci/macos@2.5.2
  flutter: circleci/flutter@2.0.0

commands:
  add-dependencies-keys:
    description: "Add required SSH keys"
    steps:
      - add_ssh_keys:
          fingerprints:
            - "FINGERPRINT"
            - "FINGERPRINT"

jobs:
  distribute_ios:
    macos:
      xcode: 15.4.0
    resource_class: macos.m1.medium.gen1
    steps:
      - add-dependencies-keys
      - checkout
      - macos/install-rosetta
      - macos/switch-ruby:
          version: "3.2"
      - run:
          name: Gem install bundle
          command: gem install bundle
      - flutter/install_sdk_and_pub:
          version: 3.22.0
      - run:
          name: Bundle install
          command: bundle install
          working_directory: ios
      - flutter/install_ios_pod
      - flutter/install_ios_gem
      - run: 
          command: bundle exec fastlane certificates
          working_directory: ios
      - run:
          command: bundle exec fastlane deploy_appstore_connect
          working_directory: ios
workflows:
  distribute:
    jobs:
      - distribute_ios:
          filters:
            branches:
              only:
                - develop

I managed to progress a bit further, but the CI complains about the bundler version found in the GEMFILE is not found. Although I can confirm that the correct bundler version is present.

TEST= gem list --local
echo $TEST

*** LOCAL GEMS ***

abbrev (default: 0.1.1)
base64 (default: 0.1.1)
benchmark (default: 0.2.1)
bigdecimal (default: 3.1.3)
bundler (2.4.19)

But, the CI fails when calling bundle install

/opt/homebrew/Cellar/pyenv/2.4.11/libexec/pyenv-init: line 260: pyenv-commands: command not found
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.4.19) required by your /Users/distiller/project/ios/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.4.19`
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
        from /usr/bin/bundle:23:in `<main>'

Exited with code exit status 1