At 28, I feel the same way for slowly meandering around Cybersecurity engineering --> AppSec --> Software Engineering...
I feel like I am a master of none and it really fuels the impostor syndrome.
I think some may be missing the point here that your brain sort of starts to go downhill at this point in terms of fluid intelligence. I feel your pain and hope that we have somewhere to go.