There are three common materials and they are not interchangeable. Getting this right is one of the cheapest safety improvements available in a house.
Smooth-wall rigid metal duct is what the concealed portion of the run should be. The interior is smooth, so lint travels through rather than catching. It holds its shape, won't sag or kink, and won't burn. It's the correct answer for anything inside a wall, ceiling or attic.
Semi-rigid metal is more flexible than rigid duct and is an acceptable choice for the short transition between the dryer and the wall connection where a bend is unavoidable. It still corrugates internally, so it should be kept as short and straight as possible, not used to absorb a badly placed connection.
This is the flimsy ridged tubing sold in every hardware store, and it's the most common thing found behind a dryer. Each ridge catches lint. It sags between supports and pools lint at the low points. It crushes when the dryer is pushed back. Plastic versions are combustible. It should not be used for a concealed run under any circumstance, and it's worth replacing even as a transition.
Replacing a short transition hose is an easy afternoon. Replacing a concealed run is a bigger job and worth combining with a full cleaning, since a duct that's been corrugated and sagging for years has accumulated well beyond what a routine cleaning interval implies.
For a short transition where a bend is needed, yes. Keep it as short and straight as the space allows.
No. Standard duct tape dries out and fails. Use foil tape rated for the application.