The disturbance is your input signal. So you need to find the transfer function from the disturbance to the output and analyze it.
In reality, the LDO has an input: the reference (it may be internal and inaccessible, but it exists). A second input is the feedback input (from your output, possibly with a divider) and then it has the output.
The output (possibly divided down by the divider) is "compared" with the reference. In fact, this operation is done by a differential amplifier that effectively subtracts the feeback from the reference. Generally, this is part of the error amplifier itself. This controls the power stage and ultimately the output voltage. So that is how the output voltage is maintained constant: it is continuously "compared" with the reference, which is a stable voltage. See first diagram.
Now, for the disturbance, consider the reference equal to zero and after some manipulations of the diagram, calculate the transfer function Y(s)/D(s), that is, you consider the input is the disturbance.
Y(s)=D(s)-Y(s)*((Hd(s))*Hea(s)*Hpf(s))
So, Y(s)/D(s)=1/(1+(Hd(s))*Hea(s)*Hpf(s))
Now you analyze this transfer function, which describes the output response to an additive disturbance.
In case you are wondering, the manipulation is based on the fact that the output of the difference block is:
ε(s)=R(s)-Y(s)*Hd(s), so by dividing by Hd(s), we get
ε(s)=(R(s)/Hd)s-Y(s))*Hd(s)