Recessed lights quit working
More information is needed.

Is this a condo or house? What is the general location? United States?

Are the lights controlled from more than one location?

Is that a new switch or what was there before?

From what is visible in the photos, it suggests that there is another box in between the switch and lights. In a condo that could even be one of the counter plugs where it then goes to the cabinet lights.

Most important question, what was done since the lights were last working as intended?