My kids went from Scratch to programming classes in middle school.
Hoagies has links to enrichment websites for all ages and subjects. Here is their page for computers and programming, you might find something useful there.
https://www.hoagiesgifted.org/programming.htm
I remember hearing good things several years ago about both Raspberry Pi and Lego Mindstorms, but I don’t have direct experience with either, and one or both may have been replaced with something newer.