Thank you! This is very informative!
However, if I wish to reapply moves that are no longer available in current gen, pkhex would give the red check.
The pokemon is caught in Sword, therefore, it can learn the move, after transfering to Gen9 however, if I tried to reapply the move, it would give me the red check.