This is a generic offbrand controller with a 9 pin connection. 9 pin controllers are used for the sega genisis for example. wired controllers designed for retro gaming, likely for a Nintendo Entertainment System or a similar NES Classic Edition console.

Classic Gaming Console Controllers - Black and Red
Classic Gaming Console Controllers - Black and Red — photo 1 of 2Photo: Courtesy of dennisgitonga.com

In Pictures