Oh, man... work identity crisis at 37 is not just normal, but more common than you think. Heck, just lemme throw some examples at you.
Back when I was young and green I had an older friend (used to go to gym together). Nice smart dude, got masters in robotics, but the work opportunities at that time in that place were scarce to non-existent. He started working as electrician and quickly grew up to work on big projects (corporate, govt. etc) and started making enough money to forget and abandon his main specialization.
And after I came back to Ukraine, I've seen many examples of people finding their niche after job loss or "existential crisis". One of my buddies worked for nearly 20 years in automotive repairs. Now he's making 3D printer filament. My good friend and previous dude's former business partner was a web designer (and before that he did the same thing as you). Now he has his little rapid prototyping business(3D printing, CNC, etc.).
One of my regular customers used to run a construction company, but after the building boom in his area finally collapsed - he became an ISP. At the start he didn't even know how it all works(or how anything works
), but now he's doing good.
Recently met an interesting dude who used to work as an economist(which is definitely an underpaid profession in Ukraine, probably one of the lowest behind teachers, medics and janitors), but now he makes big-ass plastic barrels.
Heck, I myself quit college after 1.5 years(CS, or as it was formally called there - applied math, since we had no CS dept in that college), then spent wa-a-ay too many years doing random entry-level "monkey-jobs" and side-hustles until I finally got into electronics and chip-level repairs. Now I have a little workshop, nice regular customers, and some resemblance of stability(even with war in the picture). Money isn't great, but enough to cover my bills, needs and at least some "wants". If I'd decide to go work for someone - I'd be thrown out of the door as soon as they saw my education and qualifications
All examples except one have a single common thing - if nobody wants your skills, start working for yourself. Even if it doesn't get you financial stability - it'll definitely teach you new skills. Also trying something different isn't a bad thing. I'm about the same age as you, but had at least 10 totally different jobs before settling on electronics repair. Anything you could think of, from flipping burgers to sysadmining an ISP, from re-stocking supermarket shelves to creating electronic gismos for quest rooms.