It’s harder to demonstrate growth & development in the same job for 7 years - if you have a couple of job changes it makes a more natural narrative of how you are professionally developing - not impossible at a single org, but needs a bit more of a story of projects you delivered and how you are not the same person as 7 years ago.
I don't think it's a problem per say but if same company and no role change means I'm hiring someone who doesn't like changes which in certain cases it's ok in certain cases not what someone is looking for.
I don't think it's right or wrong without the context of the hiring manager.