If they suit your figure, keep them--they are classic staple. They look fantastic on hourglass shapes especially. You can update the look with the right top/jacket and shoes. Below are some ideas.
The Pencil Skirt Isn't Dead—These 15 Styles Are Proof (2023)
https://www.byrdie.com/how-to-wear-a-pencil-skirt-1265519