Does middleman not work with Ruby 3.3.5? middleman init is failing

I am getting these errors. But after installing the earlier versions of bundler I get an untaint error. Resolving dependencies…
Could not find compatible versions

Because middleman-core >= 5.0.0.rc.1 depends on uglifier ~> 4.1
and middleman-core >= 4.1.7, < 5.0.0.rc.1 depends on uglifier ~> 3.0,
middleman-core >= 4.1.7 requires uglifier ~> 3.0 OR ~> 4.1.
And because middleman >= 3.3.0, < 4.0.0.alpha.2 depends on uglifier ~> 2.5
and middleman-livereload >= 3.1.0, < 3.2.1 depends on middleman-core >= 3.0.2,
if middleman >= 3.3.0, < 4.0.0.alpha.2 and middleman-livereload >= 3.1.0, < 3.2.1 then middleman-core >= 3.0.2, <
4.1.7.
And because middleman-core >= 3.0.0.rc.1, < 4.3.0 depends on bundler ~> 1.1
and the current Bundler version (2.6.3) does not satisfy bundler ~> 1.1,
middleman >= 3.3.0, < 4.0.0.alpha.2 is incompatible with middleman-livereload >= 3.1.0, < 3.2.1.
So, because Gemfile depends on middleman ~> 3.3.5
and Gemfile depends on middleman-livereload ~> 3.1.0,
version solving has failed.

Your bundle requires a different version of Bundler than the one you’re running.
Install the necessary version with gem install bundler:1.17.0.pre.2 and rerun bundler using `bundle 1.17.0.pre.2

Also despite graduating from a web dev bootcamp I’m basically still a noob. Bear with me.