Fix `deprecated-import` false positives (#5291)
## Summary
Remove recommendations to replace
`typing_extensions.dataclass_transform` and
`typing_extensions.SupportsIndex` with their `typing` library
counterparts.
Closes #5112.
## Test Plan
Added extra checks to the test fixture.
`cargo test`