Well, we know what happened. Now we just need how it happened. If I had to guess, I would say that someone needs practice with taxiing. Seeing that fuel is stored in the wings, they were very lucky that the wing or the fuselage wasn’t damaged.
I don’t know about Scotland, but if that accident occurred here in the U.S., both planes would have to go through a series of tests to prove that both planes are airworthy.
I imagine that both planes will have to be overhauled and re-certified as airworthy. Flybe recently went out of business and many of its routes were taken over by Loganair. Currently, the number of routes has been reduced, so there are plenty of replacement aircraft available.