Hi Paul, I have no problems with just the Arduino IDE (both versions 1.8.19 and 2.0.0) and Teensyduino 1.57, so the problem only effects PlatformIO.
Just a FYI the Teensy is hooked up to a Bosch BMI088 and a couple other senors on a custom PCB.
This is the Python code that I ran when PlatformIO...