I can build from main and check again if that helps?
Upd - built both FPC and Lazarus from trunk, still works the same for me.
Upd 2 - Seems like it works if invoked from the terminal, but not if "Open With" (no params besides the executable path in this case).
Lazarus 4.99 (rev main_4_99-1935-g4156a98ab6) FPC 3.3.1 aarch64-darwin-cocoa
Free Pascal Compiler version 3.3.1-17895-g3c5b049f6b [2025/05/14] for aarch64