The maximum number to cascade retimers in a link is 2, which is defined in PCIe specification.
Get a Detailed Explanation on the PCI-SIG blog