Created for both MacOS and Windows. Does it cost? Well, sort of. There are 4 levels of pricing. Free, Creator, Indie and Enterprise. There is also an Educational version you can apply for if you are educational institution. Then there is the Marketplace to purchase additional resources and such.
GameMaker Update 2022
How to make your own video game | no coding needed