AFAIK, SQL Server log shipping requires SMB (port 445) for file sharing so you can’t change the port. The workaround would be to use another file transfer mechanism instead of relying on SMB or set up an IPSec tunnel (although that would still involve the use of TCP at the endpoints).
Alternatively, you might be able to leverage QUIC on Windows Server 2022+ which allows SMB file sharing over UDP port 443 instead of TCP port 445.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin