That's still concerning. If your mental model of a scale is via the notes, the piano has helpful colour coding. Not being able to use that implies that the scales have instead been memorised by how they're played - frets, valves, etc. - that will stop working when a more in-depth application of keys is needed.
The piano is not the canonical model of a scale - it’s just a bit more visual than some other instruments. I went to music school and primarily play guitar and violin but can sort of play some keys. I could definitely figure out pretty much any scale on a piano but couldn’t just sit down and immediately play most of them.