What version of PS are you using? I suspect you just installed Server 2022 and used the Windows Powershell
icon. That means you're using the old version of PS (v5). This version was still being shipped at the time Server 2022 came out but it has been deprecated for a while. You should be using PowerShell Core instead. If you install and use PSCore then it should be fine.
But some people don't feel comfortable installing more software on a server so if you want to continue to use PSv5 then you have to make a registry change. PS is based on NET Framework. NET Framework predates TLS 1.2 by a decade or more. When TLS 1.2 was released it wasn't possible to simply switch over to that version without potentially breaking decades worth of code so it is off by default. To turn it on you must first be running a version of NET Framework that supports it (Server 2022 ships with that version so you're good). The second thing you have to do is make a registry change to tell NET Framework to use TLS 1.2 as the default version. You can read how to do that here. Specifically you're setting the .NETFramework\v4.0.30319
key to use the newer protocol.
Pay careful attention to the bitness here. PS ships with both x86 and x64 versions. If you want to use both versions then you have to set 2 different registry keys.
After making the change then restart PowerShell and try again.