Probably not the game you’re thinking; but my first thought was it looked like a place from Hollow Knight