Hi @BentBow
[https://www.partselect.com/Models/WRS325FDAM04/Parts/?pSearchTerm=light&start=1|Here] are all the components involved with the lights.
Given that it affects both the refrigerator and freezer compartment lights, I suspect that the LED light control board or the harness connection to it, is the most likely cause of the problem.
The switches would most probably only signal the control board to turn the lights on and off. It would be unusual for both door switches to go faulty at the same time.