you need to spend some time learning about dotnet workloads:
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-workload-install
workload are sdks, and tools added to the dotnet cli tools. the Maui build chain is part of the maui workload. Visual Studio has matching workload, that supplies a GUI to config and run workload tools. the dotnet workloads are tied a dotnet version (6,7,8,9..). VS 20222 for Mac only supports up .net 8, so don't bother with net 9.
to get to the lastest, update dotnet sdk to lastest 8 version (currently 8.0.300) and update the workloads:
dotnet workload update
going forward, there should be a Maui extension for VsCode to work with the maui workload tools. You may also be interested in jetbrains rider which is true IDE and supports Maui. I switched to Xcode and Swift/SwiftUI.
when you move to a later .net version, which you will need to do when apple drops support of Xcode 15.4 code signing, you will need to install the maui workload for that version. don't upgrade Xcode until a maui workload is released that supports the upgraded Xcode.
there were issues with maui and aspire workload manifests, but I believe fixed with the lastest versions.