MachineDolll Modifying the shader to get closer to the ideal result is certainly one solution. However, one user mentioned that they had previously tried creating a shader that could produce gamma-like results in linear color space by modifying the shader in a similar way. Ultimately, after discussing it with their engineers, they decided to switch to gamma color space. Their thread might be helpful as a reference:
https://esotericsoftware.com/forum/d/24522-spine-unity-color-spaceinconsistent-visualization
They mentioned that shader fixes partially worked, so if the results you need only affect a small part of the game, you could consider using shader fixes as a solution. However, if you want to achieve gamma color space results across many assets, it's still better to change the color space to gamma in your Unity project settings.