How to get spices off pan - even after washing
As the coloured component Curcumin is soluble in oils not water it may help to wipe the dry and washed pan with oil. Hopefully the colour  will be absorbed in to that oil rather than into the next dish you cook. You may leave the oil on while the pan is stored and wash that oil off before cooking the next dish.
Turmeric does not seem to stain the plastic (ptfe) of non stick pans but it does result in hard to remove stains on some other plastic utensils, containers and surfaces. Neat household Bleach works to quickly remove such stains on counter surfaces but would not be the first choice to use on a food pan.
Soaking with &quot;Milton&quot; eventually removes stains on plastic containers so may work on Aluminium. I have also seen suggestions that vinegar or lemon juice may work. They are both acidic and could theoretically corrode Aluminium, but I doubt it has a noticeable effect. My sweet and sour source will be acidic as will be Rhubarb but I have not noticed them damaging aluminium cookware.
(Although I do recall a health scare about aluminium leaching in to acid food which may have some scientific backing e.g. )
Links

Milton Steriliser A traditional method of sterilising babies milk bottles etc.

It is actually   based on a very dilute Sodium Hypochlorite https://en.wikipedia.org/wiki/Milton_sterilizing_fluid
And whilst I would not recommend drinking it to cure covid. It does have a history of dilute solutions being used as a mouthwash


14 methods to remove turmeric stains. It may not cover frying pans but may provide useful tips to experiment with