you can use such as per definition number three in this dictionary and other dictionaries.
https://www.merriam-webster.com/dictionary/such
you can not use so according to the same dictionary and other dictionaries not even when using definition number 2.a (1) or 2.a.1(2) or 2.b here
https://www.merriam-webster.com/dictionary/so
this is a mistake many people make.
"our village had such little money ----" as per the first definition for such I gave you = a degree of poverty.
"our village had so little money" although often colloquially used it means the money was "so" "little". * the incorrect edit I made read above.
We use so to replace or emphasise an adjective.
"I love you so very much"
"You are so disgusting"