There is an homotopy theory associated to any geometry. This can be done in various ways. but a rather systematic point of view is the one of Morel and Voevodsky.
The idea is that a geometry should define a category $V$ (whose objects are called manifolds, varieties, schemes,...) equipped with a Grothendieck topology (considering open coverings, or 'etale coverings, or fppf coverings,...). This category usually has a ring object $A^1$, "the line", which has an affine submonoid $I$ containing 0 et and 1 (could be $I=A^1$ in algebraic geometry, but $I$ could be the closed disk of radius $1$ in analytic geometry). The idea is to work with those sheaves $F$ on $V$ which are $I$-homotopy invariant: we want the projection $X\times I\to X$ to induce an equivalence $F(X)\overset{\cong}{\to} F(I\times X)$. Depending on your background you might work with simplicial sheaves equipped with a suitable model structure, or with sheaves in the sense of $\infty$-category theory (but, if you like model structures, you may produce one on sheaves of sets which is Quillen equivalent to the other two options above).
If $V$ consists of classical manifolds (differential, topological or real analytic, say) with the usual topology, we obtain a theory which is equivalent to the classical homotopy theory of good old CW-complexes. This point of view is used for very concrete, beautiful and effective reasons by Ib Madsen and Michael Weiss in their proof of the Mumford conjecture which predicts the structure of rational cohomology of the stable moduli space of Riemann surfaces, for instance.
The systematic approach by Morel and Voevodsky was designed to define a good homotopy theory over any base scheme (in particular, any ring), in which both algebraic $K$-theory and $\ell$-adic cohomology are representable, and is at the basis of motivic homotopy theory, that has grown into a topic by itself for the last couple of decades. A nice introduction with an emphasis on the concrete benefits of the motivic refinement of the theory of degree of a self map though the Witt group of the ground field has been written by Kerstin Wickelgren and Ben Williams, for instance.
The need to understand nearby cycle functors has driven people to study such homotopy theories in the context of non-archimedean analytic geometry. A specialist of this is Alberto Vezzani, who turned Scholze's tilting techniques into motivic constructions and, together with Joseph Ayoub and Martin Gallauer found a very elegant and powerful way to see nearby cycle functors through analytic techniques.
Finally, working with sheaves on reasonnable geometric object to define nice homotopy theories goes beyond the formalism of Morel and Voevodsky. There is for instance the work of Reid Barton and Johan Commelin on homotopy theories associated to o-minimal structures, or the work of David Ayala, John Francis, Nick Rozenblyum on sheaves on stratified manifolds and factorization homology.
That said, we do not need motivic techniques to define nice cohomologies: Grothendieck's idea of $\ell$-adic cohomology as a replacement of singular cohomology is robust enough to be transposed in other contexts such as (possibly non-archimedean) analytic geometry, and this is a very classical subject (from Roland Huber's foundational work for adic spaces at the end of the XXth century, to the the recent contributions of Peter Scholze and Laurent Fargues on the cohomology of diamonds).