Yes. I had L4-L5 microdisc surgery in '96. Because of this I can't do deads or squats. Those leg machines cause the same problems. The sore glute is your putting pressure on the lower back to the point that it inflamed the nerves. If you persist in activites that cause this as I did, you'll not be able to walk nor do anything but lay flat on your back until you get surgery. When it comes to lower back/nerve issues pain is not your friend. It is a dire warning.
Insurance companies are cheap in this area and will try to give you hydrocortisone injections and send you home knowing this problem will return multiple times a year. They are pennies each.
Since those days what I can and can't do it hit or miss. Squats or deads or leg machines are out. Lifting anything overhead or rows are out. I do hindu Squats, parallel bar dips, chin ups/pull ups, push ups, lat pull down, bench press/incline bench press. I know I am doing the wrong thing when by the end of the week of a new workout I get that sore glute and tap dancing nerves running down one or both legs. Again, when it comes to lower back/nerve issues pain is not your friend. It is a dire warning.