REGR: isin raising TypeError for RangeIndex
- [x] closes #41151
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them

This was easier than I've expected

cc @attack68 