For this, in nextjs apps you can always use next-seo, so in your code:
import React from 'react'
import { NextSeo } from 'next-seo'
...
<!-- in your component -->
const { title } = props
return (
<div>
{title && (
<NextSeo
title={`Here goes your custom title ${title}`}
description={description}
/>
)}
</div>
)
So in builder, just pass the title as a props to your custom component, then you will be able to customize it in the editor
Understand custom components: Registering Custom Components - Builder.io