The brake light switch on a 1997 Chevy pickup is located on the
brake pedal assembly, usually
under the dash, near where the brake pedal itself is. You'll likely need to look up from under the dash to see it. It's a relatively small switch that's activated when you press the brake pedal.
Because there are variations between models (1500, 2500, etc.) and even trim levels, it's best to consult a repair manual specific to your 1997 Chevy pickup model. A Haynes or Chilton manual will have diagrams and instructions that are much more precise than a general description.