Fine.
Search online to locate and call contact your nearest, “local” Apple Store location to try/attempt to make an appointment to get your Apple iPad 7th gen diagnosed an options presented to you.
Just in case, bring the power adapter AND cable with you.
You didn't say whether you tested this iPad with another known good Apple charge cable or not.
OR, failing that,
Contact Apple support via the contact support link located at the upper right hand corner of every Webpage of these Apple support communities.
Use the Battery and Charging support category.
OR
by installing and using the Apple Support app found in the iOS App Store.
Tap the iOS App Store link below.
https://apps.apple.com/us/app/apple-support/id1130498044
OR
Call contact Apple via the support numbers found in the link bekow.
Contact - How to Contact Us - Apple
https://www.apple.com/contact/
Best of Luck to You!