It sound like you're using the 3rd party (earlephilhower) library. If you try with the mbed (official Arduino) library, take a look at this thread, which deals with modifying the pins_arduino.h file, found here in Windows installations of Arduino IDE: C:\Users\USERNAME\AppData\Local\Arduino15\packages\arduino\hardware\mbed_rp2040\2.5.2\variants\RASPBERRY_PI_PICO, to specify Wire and Wire1 pins for use in I2C connections:
https://github.com/arduino/ArduinoCore-mbed/issues/194#issuecomment-825490996