Finely chop the onion, celery, fennel, garlic and chilli. Heat the oil in a large pan, add the onion, celery, fennel, garlic and chilli and sweat gently until soft.
Add the wine, tomatoes or passata, squash and stock and bring to the boil. Cover and simmer gently for 30 minutes. Season and gently break up the tomatoes.