The sample size for a pilot study is contingent on its purpose. That being said, you could check out the formula by Viechtbauer et al. (2015) for calculating sample size in pilot studies. Here is the full citation.
Viechtbauer, W., Smits, L., Kotz, D., Budé, L., Spigt, M., Serroyen, J., & Crutzen, R. (2015). A simple formula for the calculation of sample size in pilot studies. Journal of Clinical Epidemiology, 68(11), 1375–1379. https://doi.org/10.1016/j.jclinepi.2015.04.014
They are determined according to several criteria, including the nature of the research topic, the type of objectives and the nature of the participants. In all cases, the number of respondents is small