ASML machines include a large amount of technology from the US, and so can be controlled under US export control laws.
A country is free to develop all those technologies locally and not face US export control, but that's such a difficult task that nobody has achieved it.
That doesn't matter. If they want to export TO the US they are subject to US export laws. The US has a history of their economical and political power forcing companies that have no business with the US to do their bidding to stay in business. Just look at the Iran sanctions.
A country is free to develop all those technologies locally and not face US export control, but that's such a difficult task that nobody has achieved it.