Animation / lines || strokes

Hi everyone,

I am struggling a bit with what seems to me as a very basic animation but maybe its not as basic as all that.

I would like to have a rectangle animation such that the rectangle borders appear to draw themselves. In other words, there is text in the middle, and a rectangle frames appears around it not with fade-in fade-out animation, but line-by-line drawing.

below an image of the order i want the lines to appear in… If anyone has an idea about how to reach this result… many thanks!
Capture d’écran 2022-05-04 à 11.53.25