I'm having an issue with RM92A, and MKR 1010 IoT

I don't know how to use SERCOM to map UART to different pins, and I got this code from chatGPT for my MKR carrier board rev2. I wanted to create a new UART pin on A1 and A2, but it was not sending a data when using a RFlink RM92A module.
ganarev2.ino (117.0 KB)
Can anyone help me out with this?

Does this help you out: