I reread your question and found that the latest generation of iPad Pro is the 6th and that for the iPad Air, the latest mentioned is the 5th; then they only indicate the screen sizes (11" or 13")...
the Apple Pencil USB-C also exists in first and second generation. So your question isn't very precise. But reading the Apple website, the compatibility of the different models seems very extensive. Have a look at their page (at the very bottom there's a compatibility section) and if necessary use their chatbot:
https://www.apple.com/ch-fr...