The noun flaky pastry can be countable or uncountable.
The singular form of flaky pastries is flaky pastry.