I’m happy to see you on our community forum! I came across many of your C++ talks that I found really helpful
You are right about the false negative.
We have a rule specification to detect iterator invalidation in general, but it has not been implemented yet. I think it is easy to start small and detect the common pattern like your example. Here is a Jira ticket to track progress on the topic.