See for instance the multipoint constraint extension to dolfinx: https://github.com/jorgensd/dolfinx_mpc/blob/master/python/demos/demo_stokes.py
You could Also consider using Lagrange multiplers with the Mixed dimensional functionality introduced in: https://arxiv.org/abs/1911.01166
2 Likes