I'm pretty sure I am. I've even had a manager tell me in a 1-on-1 "not everyone has the potential to be more than a mid level". Here I am 10 years into my career and still a midlevel.
With what you've said, it makes sense to feel that way. I would encourage finding ways to think about it/express it, one that doesn't make it a character flaw.
Can you phrase it in a less absolute/intrinsic way, though? "I am a dumb dumb" isn't a solvable problem.
I encourage you not to personalize this (Using "I am"). You may not be a mediocre software engineer, but that does not equal YOU being a dumb dumb.
That's a false equivalence. I'm sure there are areas where you are not a dumb dumb.