My car did not come with air ride so I have no factory air ride experience. But I have about 30 years of custom hydraulics/air ride experience.
When I first installed air on my Model S I bought a salvage set of air struts because no one was making aftermarket air ride struts for the Tesla. From what I can tell from studying Tesla's air ride system and the struts that I have, there's no reprogramming involved with replacing a like-for-like strut. The system appears to mainly use the height sensors for ride height and (maybe) pressure for load equalization or to compensate for driving style. And blah blah blah...
But anyway... before you start replacing a strut, you should check for other sources of the leak. It may or may not be the strut. You may want to start at the strut and spray some soapy water around the sir fitting to see if there's an air leak there. Then pull your frunk out and spray around the air manifold to see if there's a leak there. They're all push-to-connect fittings and 'generally' don't come loose or leak but sometimes things happen.
So basically, check your air line at the startpoint and endpoint of its journey, before you start replacing parts.