Samsung's Fold devices (1 to 6) are also riddled with magnets (everywhere) and Wacom works fine, and with flexible substrate no less.

That said, apparently it was expensive for them: they got rid of it in this year's iteration.