I think the problem is that Itch classifies RPG as a genre and not as a tag.Try this:
https://itch.io/games/genre-rpg?exclude=tg.erotic
thank you so much, this is working fine except for the incorrectly tagged games. but you still made it go from 99% porn 1% games to 60% games, 40% porn.