This article explains how to connect the Magic Keyboard with Touch ID to an iPad or iPad Pro.
How to Connect iPad Magic Keyboard (Tutorial)
The Magic Keyboard with Touch ID is an update to the original Magic Keyboard that looks quite similar to the original, except it has a Touch ID button. This keyboard originally shipped with the first M1 iMac, but it is fully compatible with all M1 Macs, and can also connect to your iPad, iPad Air, or iPad Pro.
While the Magic Keyboard with Touch ID is compatible with iPads, the Touch ID feature only works with M1 Macs. It does not work with any iPad, including the M1 iPad Pro. The keyboard itself connects and works in other ways, but it is not compatible with the Touch ID feature on iPads, and does not add Touch ID capability to the M1 iPad Pro, which does not have a built-in fingerprint sensor.
Here's how to connect a Magic Keyboard with Touch ID to an iPad: