The flakes sound like seborrheic dermatitis which can cause hair loss. Make sure that’s fully treated. Here’s someone on the forum that reversed their hair loss by way of scalp health.
If it’s androgenic alopecia, you sound like you’re on the right track, read the beginner’s guide.