I have run into issues with this problem, mainly due to the difference in aftermarket (i.e. Curt, Reese, etc) as opposed to factory Nissan 7-pin wiring harness, Problem is a lot of the aftermarket 7-pin plug and play harnesses end up reversing the trailer brake and the 12 volt positive accessory pins.
Just traded my 2019 Pro-4X for a new 2022 Pro-4X. 2019 did not come from the factory with the hitch and 7-pin wiring harness installed, so the dealer went to a local hitch supplier for the install before it picked it up. However, ended up switching the trailer brake wire and the 12 volt positive accessory in the junction box on the trailer as the brakes were continually on with the ignition key in the run position Had to switch the wires back in the junction box again when I picked up the 2022 model.
As per the wiring standards diagram for a 7-pin female connector, Nissan has it right on the 2022 model from the factory.